mirror of
https://github.com/xemu-project/xemu.git
synced 2025-04-02 11:11:48 -04:00
qdev/prop: convert slavio_timer.c to helper macros.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id: Message-Id:
This commit is contained in:
parent
7fdaf611a5
commit
18c637dccb
1 changed files with 2 additions and 6 deletions
|
@ -451,12 +451,8 @@ static SysBusDeviceInfo slavio_timer_info = {
|
|||
.qdev.name = "slavio_timer",
|
||||
.qdev.size = sizeof(SLAVIO_TIMERState),
|
||||
.qdev.props = (Property[]) {
|
||||
{
|
||||
.name = "num_cpus",
|
||||
.info = &qdev_prop_uint32,
|
||||
.offset = offsetof(SLAVIO_TIMERState, num_cpus),
|
||||
},
|
||||
{/* end of property list */}
|
||||
DEFINE_PROP_UINT32("num_cpus", SLAVIO_TIMERState, num_cpus, 0),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue