From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49603) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afUnz-0002hb-4h for qemu-devel@nongnu.org; Mon, 14 Mar 2016 11:53:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1afUnu-0004ep-8m for qemu-devel@nongnu.org; Mon, 14 Mar 2016 11:53:15 -0400 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:35319) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afUnu-0004eW-26 for qemu-devel@nongnu.org; Mon, 14 Mar 2016 11:53:10 -0400 Received: by mail-wm0-x242.google.com with SMTP id n205so16010480wmf.2 for ; Mon, 14 Mar 2016 08:53:09 -0700 (PDT) From: Nikos Filippakis Date: Mon, 14 Mar 2016 17:53:02 +0200 Message-Id: <1457970782-25518-1-git-send-email-aesmade@gmail.com> Subject: [Qemu-devel] [PATCH 1/4] musicpal: Change qemu_system_reset_request to watchdog_perform_action where appropriate List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Nikos Filippakis , jan.kiszka@web.de 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 --- hw/arm/musicpal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/arm/musicpal.c b/hw/arm/musicpal.c index 54548f3..c9d57de 100644 --- a/hw/arm/musicpal.c +++ b/hw/arm/musicpal.c @@ -25,6 +25,7 @@ #include "sysemu/block-backend.h" #include "exec/address-spaces.h" #include "ui/pixel_ops.h" +#include "sysemu/watchdog.h" #define MP_MISC_BASE 0x80002000 #define MP_MISC_SIZE 0x00001000 @@ -887,7 +888,7 @@ static void mv88w8618_pit_write(void *opaque, hwaddr offset, case MP_BOARD_RESET: if (value == MP_BOARD_RESET_MAGIC) { - qemu_system_reset_request(); + watchdog_perform_action(); } break; } -- 1.9.1