projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3180d77
)
qdev/prop: convert sun4m.c to helper macros.
author
Gerd Hoffmann
<kraxel@redhat.com>
Mon, 3 Aug 2009 15:35:35 +0000
(17:35 +0200)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Mon, 10 Aug 2009 18:11:25 +0000
(13:11 -0500)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
hw/sun4m.c
patch
|
blob
|
history
diff --git
a/hw/sun4m.c
b/hw/sun4m.c
index abadfd6ffedaec9efb0506ac0fe62a876e77d019..ddc295a9a8f886ccafacdfd9578fc7b1bc7cb9f8 100644
(file)
--- a/
hw/sun4m.c
+++ b/
hw/sun4m.c
@@
-695,12
+695,8
@@
static SysBusDeviceInfo ram_info = {
.qdev.name = "memory",
.qdev.size = sizeof(RamDevice),
.qdev.props = (Property[]) {
- {
- .name = "size",
- .info = &qdev_prop_uint64,
- .offset = offsetof(RamDevice, size),
- },
- {/* end of property list */}
+ DEFINE_PROP_UINT64("size", RamDevice, size, 0),
+ DEFINE_PROP_END_OF_LIST(),
}
};