Commit 0484362698338b745fc1028cd3592581ec57a97b

Authored by Blue Swirl
1 parent 5a053d1f

Sparc32/64: use 64 bit type for memory size

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Showing 2 changed files with 4 additions and 4 deletions
hw/sun4m.c
@@ -480,7 +480,7 @@ device_init(prom_register_devices); @@ -480,7 +480,7 @@ device_init(prom_register_devices);
480 typedef struct RamDevice 480 typedef struct RamDevice
481 { 481 {
482 SysBusDevice busdev; 482 SysBusDevice busdev;
483 - uint32_t size; 483 + uint64_t size;
484 } RamDevice; 484 } RamDevice;
485 485
486 /* System RAM */ 486 /* System RAM */
@@ -527,7 +527,7 @@ static SysBusDeviceInfo ram_info = { @@ -527,7 +527,7 @@ static SysBusDeviceInfo ram_info = {
527 .qdev.props = (Property[]) { 527 .qdev.props = (Property[]) {
528 { 528 {
529 .name = "size", 529 .name = "size",
530 - .info = &qdev_prop_uint32, 530 + .info = &qdev_prop_uint64,
531 .offset = offsetof(RamDevice, size), 531 .offset = offsetof(RamDevice, size),
532 }, 532 },
533 {/* end of property list */} 533 {/* end of property list */}
hw/sun4u.c
@@ -455,7 +455,7 @@ device_init(prom_register_devices); @@ -455,7 +455,7 @@ device_init(prom_register_devices);
455 typedef struct RamDevice 455 typedef struct RamDevice
456 { 456 {
457 SysBusDevice busdev; 457 SysBusDevice busdev;
458 - uint32_t size; // XXX 458 + uint64_t size;
459 } RamDevice; 459 } RamDevice;
460 460
461 /* System RAM */ 461 /* System RAM */
@@ -494,7 +494,7 @@ static SysBusDeviceInfo ram_info = { @@ -494,7 +494,7 @@ static SysBusDeviceInfo ram_info = {
494 .qdev.props = (Property[]) { 494 .qdev.props = (Property[]) {
495 { 495 {
496 .name = "size", 496 .name = "size",
497 - .info = &qdev_prop_uint32, 497 + .info = &qdev_prop_uint64,
498 .offset = offsetof(RamDevice, size), 498 .offset = offsetof(RamDevice, size),
499 }, 499 },
500 {/* end of property list */} 500 {/* end of property list */}