summaryrefslogtreecommitdiff
path: root/hw/sysbus.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-10-02 14:27:41 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-10-02 14:27:41 +0000
commit3f7132d1a35040331ae4541f010713b835be75e3 (patch)
treec91ee1faef87dc1ac6d7b38dfabad575decba290 /hw/sysbus.c
parent211ecdc0e4226e86c406b0ce91ed355fdde021ab (diff)
downloadqemu-3f7132d1a35040331ae4541f010713b835be75e3.tar.gz
qemu-3f7132d1a35040331ae4541f010713b835be75e3.tar.bz2
qemu-3f7132d1a35040331ae4541f010713b835be75e3.zip
sysbus: fix address truncation
Fix address truncation in sysbus by using a wider type. Reported-by: Artyom Tarasenko <atar4qemu@googlemail.com> Tested-by: Andreas Färber <andreas.faerber@web.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/sysbus.c')
-rw-r--r--hw/sysbus.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/sysbus.c b/hw/sysbus.c
index 1f7f138416..d817721420 100644
--- a/hw/sysbus.c
+++ b/hw/sysbus.c
@@ -82,7 +82,8 @@ void sysbus_pass_irq(SysBusDevice *dev, SysBusDevice *target)
}
}
-void sysbus_init_mmio(SysBusDevice *dev, target_phys_addr_t size, int iofunc)
+void sysbus_init_mmio(SysBusDevice *dev, target_phys_addr_t size,
+ ram_addr_t iofunc)
{
int n;