sparc32 reset's regression
reset on SS-10/SS-20 machines hangs on memory detection if qemu-system-sparc is launched with OBP (not OpenBios).
git bisect shows that the regression comes with the patch "Don't set IRQs on device reset and loadvm/savevm" on 2009-06-17 19:20:01.
Artyom
Quoted 5 lines · Artyom Tarasenko
reset on SS-10/SS-20 machines hangs on memory detection if qemu-system-sparc is launched with OBP (not OpenBios).
git bisect shows that the regression comes with the patch "Don't set IRQs on device reset and loadvm/savevm" on 2009-06-17 19:20:01.
The commit looks fine to me. Would this patch happen to fix the bug?
From 9dbada21174183433bd5560c59d3dc7a1a89bbe9 Mon Sep 17 00:00:00 2001
From: Blue Swirl <[email protected]>
Date: Wed, 5 Aug 2009 18:31:32 +0000
Subject: [PATCH] Fix reset
--- hw/slavio_intctl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
hw/slavio_intctl.c +1 -1
@@ -383,7 +383,7 @@ static void slavio_intctl_reset(void *opaque) s->intregm_disabled = ~MASTER_IRQ_MASK ; s->intregm_pending =0 ; s->target_cpu =0 ; -slavio_check_interrupts (s,0 ); +slavio_check_interrupts (s,1 ); }static void slavio_intctl_init1 (SysBusDevice *dev)
Signature · 1 line
1.5.6.5
Quoted 1 line
The commit looks fine to me. Would this patch happen to fix the bug?
Yes, this patch fixes the bug, thanks.
It can be though that the bug is not directly related to the initial commit. There seems to be a race condition. Sometimes the bug didn't appear even without the fix if I put a lot of DPRINTFs in irq handling in sun4m.c and cpu-exec.c and turn the logging on. Unfortunately it's not always reproducible, so I can't tell yet which printf hides the problem.