Message ID | 1457970960-25883-1-git-send-email-aesmade@gmail.com |
---|---|
State | New |
Headers | show |
diff --git a/hw/arm/omap1.c b/hw/arm/omap1.c index 6f68130..4c719f8 100644 --- a/hw/arm/omap1.c +++ b/hw/arm/omap1.c @@ -28,6 +28,7 @@ #include "sysemu/blockdev.h" #include "qemu/range.h" #include "hw/sysbus.h" +#include "sysemu/watchdog.h" /* Should signal the TCMI/GPMC */ uint32_t omap_badwidth_read8(void *opaque, hwaddr addr) @@ -349,7 +350,7 @@ static void omap_wd_timer_write(void *opaque, hwaddr addr, /* XXX: on T|E hardware somehow this has no effect, * on Zire 71 it works as specified. */ s->reset = 1; - qemu_system_reset_request(); + watchdog_perform_action(); } } s->last_wr = value & 0xff;
Instead of using qemu_system_reset_request() to reset when a watchdog triggers, let watchdog_perform_action() decide what to do, as stated in the BiteSizedTasks wiki page. Signed-off-by: Nikos Filippakis <aesmade@gmail.com> --- hw/arm/omap1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)