All registers are set to 0 on reset (Robert Reif)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3841 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
bd7e2875fe
commit
3b4aa426a9
|
@ -311,13 +311,11 @@ static void slavio_timer_reset(void *opaque)
|
||||||
{
|
{
|
||||||
SLAVIO_TIMERState *s = opaque;
|
SLAVIO_TIMERState *s = opaque;
|
||||||
|
|
||||||
if (slavio_timer_is_user(s))
|
s->limit = 0;
|
||||||
s->limit = TIMER_MAX_COUNT64;
|
|
||||||
else
|
|
||||||
s->limit = TIMER_MAX_COUNT32;
|
|
||||||
s->count = 0;
|
s->count = 0;
|
||||||
s->reached = 0;
|
s->reached = 0;
|
||||||
ptimer_set_limit(s->timer, LIMIT_TO_PERIODS(s->limit), 1);
|
s->slave_mode = 0;
|
||||||
|
ptimer_set_limit(s->timer, LIMIT_TO_PERIODS(TIMER_MAX_COUNT32), 1);
|
||||||
ptimer_run(s->timer, 0);
|
ptimer_run(s->timer, 0);
|
||||||
s->running = 1;
|
s->running = 1;
|
||||||
qemu_irq_lower(s->irq);
|
qemu_irq_lower(s->irq);
|
||||||
|
|
Loading…
Reference in a new issue