mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-07 05:51:36 +00:00
qdev/prop: convert sun4m.c to helper macros.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
This commit is contained in:
parent
3180d77219
commit
c885159a7a
@ -695,12 +695,8 @@ static SysBusDeviceInfo ram_info = {
|
|||||||
.qdev.name = "memory",
|
.qdev.name = "memory",
|
||||||
.qdev.size = sizeof(RamDevice),
|
.qdev.size = sizeof(RamDevice),
|
||||||
.qdev.props = (Property[]) {
|
.qdev.props = (Property[]) {
|
||||||
{
|
DEFINE_PROP_UINT64("size", RamDevice, size, 0),
|
||||||
.name = "size",
|
DEFINE_PROP_END_OF_LIST(),
|
||||||
.info = &qdev_prop_uint64,
|
|
||||||
.offset = offsetof(RamDevice, size),
|
|
||||||
},
|
|
||||||
{/* end of property list */}
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user