aboutsummaryrefslogtreecommitdiff
path: root/hw/sun4m.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-08-09 08:42:19 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-08-09 08:42:19 +0000
commitd9c3231019a0fbacbe15dcb26a0e3708b726af77 (patch)
treef00d2747772fbf49fcc46cefcd8f30bec97154a2 /hw/sun4m.c
parentb2b6f6ec3996925ebc85e77c5ac31ff34e8783f6 (diff)
Use qemu_irq for system_powerdown
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/sun4m.c')
-rw-r--r--hw/sun4m.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/hw/sun4m.c b/hw/sun4m.c
index 5e47240af3..abadfd6ffe 100644
--- a/hw/sun4m.c
+++ b/hw/sun4m.c
@@ -451,13 +451,6 @@ static void slavio_timer_init_all(target_phys_addr_t addr, qemu_irq master_irq,
#define MISC_MDM 0x01b00000
#define MISC_SYS 0x01f00000
-static qemu_irq slavio_powerdown;
-
-void qemu_system_powerdown(void)
-{
- qemu_irq_raise(slavio_powerdown);
-}
-
static void slavio_misc_init(target_phys_addr_t base,
target_phys_addr_t aux1_base,
target_phys_addr_t aux2_base, qemu_irq irq,
@@ -494,7 +487,7 @@ static void slavio_misc_init(target_phys_addr_t base,
}
sysbus_connect_irq(s, 0, irq);
sysbus_connect_irq(s, 1, fdc_tc);
- slavio_powerdown = qdev_get_gpio_in(dev, 0);
+ qemu_system_powerdown = qdev_get_gpio_in(dev, 0);
}
static void ecc_init(target_phys_addr_t base, qemu_irq irq, uint32_t version)