Skip to contentSkip to conversation

omap1: Change qemu_system_reset_request to watchdog_perform_action where appropriate

PATCH New Nikos Filippakis 1 participant 1 message Mar 14, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 2/4 omap1: Change qemu_system_reset_request to watchdog_perform_action where appropriate

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.

---
 hw/arm/omap1.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
hw/arm/omap1.c +2 -1
index 6f68130..4c719f8 100644
@@ -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;
Signature · 1 line
1.9.1