* [Qemu-devel] [PATCH] sparc32: all registers set to 0 on reset
@ 2007-12-19 12:39 Robert Reif
0 siblings, 0 replies; only message in thread
From: Robert Reif @ 2007-12-19 12:39 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 94 bytes --]
All registers are set to 0 on reset.
This requires my prevoius patch which isn't in CVS yet.
[-- Attachment #2: timer3.diff.txt --]
[-- Type: text/plain, Size: 662 bytes --]
diff -p -u -r1.23 slavio_timer.c
--- hw/slavio_timer.c 17 Dec 2007 18:21:57 -0000 1.23
+++ hw/slavio_timer.c 19 Dec 2007 12:28:30 -0000
@@ -306,13 +369,11 @@ static void slavio_timer_reset(void *opa
{
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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-12-19 12:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-19 12:39 [Qemu-devel] [PATCH] sparc32: all registers set to 0 on reset Robert Reif
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.