diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-07-21 11:20:11 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-07-21 11:20:11 +0000 |
commit | 0484362698338b745fc1028cd3592581ec57a97b (patch) | |
tree | 0d4e74bf460674da3b08eeddb450e4b3f8f6de01 | |
parent | 5a053d1f2e75e6a87c483bb3ff5cc6cdf29e1569 (diff) |
Sparc32/64: use 64 bit type for memory size
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r-- | hw/sun4m.c | 4 | ||||
-rw-r--r-- | hw/sun4u.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/hw/sun4m.c b/hw/sun4m.c index f390595886..9e4bfac9fe 100644 --- a/hw/sun4m.c +++ b/hw/sun4m.c @@ -480,7 +480,7 @@ device_init(prom_register_devices); typedef struct RamDevice { SysBusDevice busdev; - uint32_t size; + uint64_t size; } RamDevice; /* System RAM */ @@ -527,7 +527,7 @@ static SysBusDeviceInfo ram_info = { .qdev.props = (Property[]) { { .name = "size", - .info = &qdev_prop_uint32, + .info = &qdev_prop_uint64, .offset = offsetof(RamDevice, size), }, {/* end of property list */} diff --git a/hw/sun4u.c b/hw/sun4u.c index 47ff3eb9c5..c49e345429 100644 --- a/hw/sun4u.c +++ b/hw/sun4u.c @@ -455,7 +455,7 @@ device_init(prom_register_devices); typedef struct RamDevice { SysBusDevice busdev; - uint32_t size; // XXX + uint64_t size; } RamDevice; /* System RAM */ @@ -494,7 +494,7 @@ static SysBusDeviceInfo ram_info = { .qdev.props = (Property[]) { { .name = "size", - .info = &qdev_prop_uint32, + .info = &qdev_prop_uint64, .offset = offsetof(RamDevice, size), }, {/* end of property list */} |