qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT 0484362] Sparc32/64: use 64 bit type for memory s


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT 0484362] Sparc32/64: use 64 bit type for memory size
Date: Tue, 21 Jul 2009 11:23:39 -0000

From: Blue Swirl <address@hidden>

Signed-off-by: Blue Swirl <address@hidden>

diff --git a/hw/sun4m.c b/hw/sun4m.c
index f390595..9e4bfac 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 47ff3eb..c49e345 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 */}




reply via email to

[Prev in Thread] Current Thread [Next in Thread]