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 480 typedef struct RamDevice
481 481 {
482 482 SysBusDevice busdev;
483   - uint32_t size;
  483 + uint64_t size;
484 484 } RamDevice;
485 485  
486 486 /* System RAM */
... ... @@ -527,7 +527,7 @@ static SysBusDeviceInfo ram_info = {
527 527 .qdev.props = (Property[]) {
528 528 {
529 529 .name = "size",
530   - .info = &qdev_prop_uint32,
  530 + .info = &qdev_prop_uint64,
531 531 .offset = offsetof(RamDevice, size),
532 532 },
533 533 {/* end of property list */}
... ...
hw/sun4u.c
... ... @@ -455,7 +455,7 @@ device_init(prom_register_devices);
455 455 typedef struct RamDevice
456 456 {
457 457 SysBusDevice busdev;
458   - uint32_t size; // XXX
  458 + uint64_t size;
459 459 } RamDevice;
460 460  
461 461 /* System RAM */
... ... @@ -494,7 +494,7 @@ static SysBusDeviceInfo ram_info = {
494 494 .qdev.props = (Property[]) {
495 495 {
496 496 .name = "size",
497   - .info = &qdev_prop_uint32,
  497 + .info = &qdev_prop_uint64,
498 498 .offset = offsetof(RamDevice, size),
499 499 },
500 500 {/* end of property list */}
... ...