diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-08-09 08:42:19 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-08-09 08:42:19 +0000 |
commit | d9c3231019a0fbacbe15dcb26a0e3708b726af77 (patch) | |
tree | f00d2747772fbf49fcc46cefcd8f30bec97154a2 /hw/sun4m.c | |
parent | b2b6f6ec3996925ebc85e77c5ac31ff34e8783f6 (diff) | |
download | qemu-d9c3231019a0fbacbe15dcb26a0e3708b726af77.zip qemu-d9c3231019a0fbacbe15dcb26a0e3708b726af77.tar.gz qemu-d9c3231019a0fbacbe15dcb26a0e3708b726af77.tar.bz2 |
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.c | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -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) |