aboutsummaryrefslogtreecommitdiff
path: root/hw/m48t59.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-06-20 12:58:36 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-06-20 12:58:36 +0000
commitd7d02e3c3a50782c0fa6b17d16f9957f1cc82a65 (patch)
treef07209fb39574448a87f576dfaefb655568d1c86 /hw/m48t59.c
parentbb0c6722b6606ad34da75d093d95a9bdfe42bc98 (diff)
new reset API
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@938 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/m48t59.c')
-rw-r--r--hw/m48t59.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/m48t59.c b/hw/m48t59.c
index 9f0a128d59..445bc71793 100644
--- a/hw/m48t59.c
+++ b/hw/m48t59.c
@@ -162,9 +162,7 @@ static void watchdog_cb (void *opaque)
NVRAM->buffer[0x1FF7] = 0x00;
NVRAM->buffer[0x1FFC] &= ~0x40;
/* May it be a hw CPU Reset instead ? */
- reset_requested = 1;
- printf("Watchdog reset...\n");
- cpu_interrupt(cpu_single_env, CPU_INTERRUPT_EXIT);
+ qemu_system_reset_request();
} else {
pic_set_irq(NVRAM->IRQ, 1);
pic_set_irq(NVRAM->IRQ, 0);