提交 bb36f66a 编写于 作者: G Gerd Hoffmann 提交者: Anthony Liguori

qdev/prop: convert integratorcp.c to helper macros.

Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
Message-Id: 
上级 368eb5d4
......@@ -526,12 +526,8 @@ static SysBusDeviceInfo core_info = {
.qdev.name = "integrator_core",
.qdev.size = sizeof(integratorcm_state),
.qdev.props = (Property[]) {
{
.name = "memsz",
.info = &qdev_prop_uint32,
.offset = offsetof(integratorcm_state, memsz),
},
{/* end of list */}
DEFINE_PROP_UINT32("memsz", integratorcm_state, memsz, 0),
DEFINE_PROP_END_OF_LIST(),
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册