mirror of https://gitee.com/openkylin/qemu.git
qdev/prop: convert iommu.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
bb36f66a97
commit
668724a784
|
@ -386,12 +386,8 @@ static SysBusDeviceInfo iommu_info = {
|
|||
.qdev.name = "iommu",
|
||||
.qdev.size = sizeof(IOMMUState),
|
||||
.qdev.props = (Property[]) {
|
||||
{
|
||||
.name = "version",
|
||||
.info = &qdev_prop_hex32,
|
||||
.offset = offsetof(IOMMUState, version),
|
||||
},
|
||||
{/* end of property list */}
|
||||
DEFINE_PROP_HEX32("version", IOMMUState, version, 0),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue