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:
blueswir1 2007-12-19 17:59:31 +00:00
parent bd7e2875fe
commit 3b4aa426a9
1 changed files with 3 additions and 5 deletions

View File

@ -311,13 +311,11 @@ static void slavio_timer_reset(void *opaque)
{
SLAVIO_TIMERState *s = opaque;
if (slavio_timer_is_user(s))
s->limit = TIMER_MAX_COUNT64;
else
s->limit = TIMER_MAX_COUNT32;
s->limit = 0;
s->count = 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);
s->running = 1;
qemu_irq_lower(s->irq);