Sparc32/64: use 64 bit type for memory size
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
5a053d1f2e
commit
0484362698
|
@ -480,7 +480,7 @@ device_init(prom_register_devices);
|
||||||
typedef struct RamDevice
|
typedef struct RamDevice
|
||||||
{
|
{
|
||||||
SysBusDevice busdev;
|
SysBusDevice busdev;
|
||||||
uint32_t size;
|
uint64_t size;
|
||||||
} RamDevice;
|
} RamDevice;
|
||||||
|
|
||||||
/* System RAM */
|
/* System RAM */
|
||||||
|
@ -527,7 +527,7 @@ static SysBusDeviceInfo ram_info = {
|
||||||
.qdev.props = (Property[]) {
|
.qdev.props = (Property[]) {
|
||||||
{
|
{
|
||||||
.name = "size",
|
.name = "size",
|
||||||
.info = &qdev_prop_uint32,
|
.info = &qdev_prop_uint64,
|
||||||
.offset = offsetof(RamDevice, size),
|
.offset = offsetof(RamDevice, size),
|
||||||
},
|
},
|
||||||
{/* end of property list */}
|
{/* end of property list */}
|
||||||
|
|
|
@ -455,7 +455,7 @@ device_init(prom_register_devices);
|
||||||
typedef struct RamDevice
|
typedef struct RamDevice
|
||||||
{
|
{
|
||||||
SysBusDevice busdev;
|
SysBusDevice busdev;
|
||||||
uint32_t size; // XXX
|
uint64_t size;
|
||||||
} RamDevice;
|
} RamDevice;
|
||||||
|
|
||||||
/* System RAM */
|
/* System RAM */
|
||||||
|
@ -494,7 +494,7 @@ static SysBusDeviceInfo ram_info = {
|
||||||
.qdev.props = (Property[]) {
|
.qdev.props = (Property[]) {
|
||||||
{
|
{
|
||||||
.name = "size",
|
.name = "size",
|
||||||
.info = &qdev_prop_uint32,
|
.info = &qdev_prop_uint64,
|
||||||
.offset = offsetof(RamDevice, size),
|
.offset = offsetof(RamDevice, size),
|
||||||
},
|
},
|
||||||
{/* end of property list */}
|
{/* end of property list */}
|
||||||
|
|
Loading…
Reference in a new issue