qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 2/4] omap1: Change qemu_system_reset_request to watchdog_perform_action where appropriate
@ 2016-03-14 15:56 Nikos Filippakis
  0 siblings, 0 replies; only message in thread
From: Nikos Filippakis @ 2016-03-14 15:56 UTC (permalink / raw)
  To: qemu-devel; +Cc: Nikos Filippakis, peter.maydell

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(-)

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;
-- 
1.9.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-03-14 15:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-14 15:56 [Qemu-devel] [PATCH 2/4] omap1: Change qemu_system_reset_request to watchdog_perform_action where appropriate Nikos Filippakis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).