From: Blue Swirl Date: Fri, 17 Jul 2009 11:01:48 +0000 (+0000) Subject: Sparc32: fix fdc io_base X-Git-Tag: v0.11.0-rc1~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8149632ad0e411a8977a650594357a384bfc60ef;p=thirdparty%2Fqemu.git Sparc32: fix fdc io_base On some Sparc32 machines, fdc is located above 4G limit, so uint32_t is not appropriate type for io_base. Signed-off-by: Blue Swirl --- diff --git a/hw/fdc.c b/hw/fdc.c index fa154a30cbb..4ad5e5ee816 100644 --- a/hw/fdc.c +++ b/hw/fdc.c @@ -33,6 +33,7 @@ #include "qemu-timer.h" #include "isa.h" #include "sysbus.h" +#include "qdev-addr.h" /********************************************************/ /* debug Floppy devices */ @@ -1972,7 +1973,7 @@ static SysBusDeviceInfo fdc_info = { .qdev.props = (Property[]) { { .name = "io_base", - .info = &qdev_prop_uint32, + .info = &qdev_prop_taddr, .offset = offsetof(fdctrl_t, io_base), }, {