mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
include/hw/qdev-properties: Remove DEFINE_PROP_END_OF_LIST
Now that all of the Property arrays are counted, we can remove the terminator object from each array. Update the assertions in device_class_set_props to match. With struct Property being 88 bytes, this was a rather large form of terminator. Saves 30k from qemu-system-aarch64. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Tested-by: Lei Yang <leiyang@redhat.com> Link: https://lore.kernel.org/r/20241218134251.4724-21-richard.henderson@linaro.org Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
ebe9685f12
commit
5fcabe628b
556 changed files with 7 additions and 624 deletions
|
@ -141,7 +141,6 @@ static void i82374_realize(DeviceState *dev, Error **errp)
|
|||
|
||||
static const Property i82374_properties[] = {
|
||||
DEFINE_PROP_UINT32("iobase", I82374State, iobase, 0x400),
|
||||
DEFINE_PROP_END_OF_LIST()
|
||||
};
|
||||
|
||||
static void i82374_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -590,7 +590,6 @@ static const Property i8257_properties[] = {
|
|||
DEFINE_PROP_INT32("page-base", I8257State, page_base, 0x80),
|
||||
DEFINE_PROP_INT32("pageh-base", I8257State, pageh_base, 0x480),
|
||||
DEFINE_PROP_INT32("dshift", I8257State, dshift, 0),
|
||||
DEFINE_PROP_END_OF_LIST()
|
||||
};
|
||||
|
||||
static void i8257_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -411,7 +411,6 @@ static void pl081_init(Object *obj)
|
|||
static const Property pl080_properties[] = {
|
||||
DEFINE_PROP_LINK("downstream", PL080State, downstream,
|
||||
TYPE_MEMORY_REGION, MemoryRegion *),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void pl080_class_init(ObjectClass *oc, void *data)
|
||||
|
|
|
@ -1669,8 +1669,6 @@ static const Property pl330_properties[] = {
|
|||
|
||||
DEFINE_PROP_LINK("memory", PL330State, mem_mr,
|
||||
TYPE_MEMORY_REGION, MemoryRegion *),
|
||||
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void pl330_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -619,7 +619,6 @@ static const Property axidma_properties[] = {
|
|||
tx_control_dev, TYPE_STREAM_SINK, StreamSink *),
|
||||
DEFINE_PROP_LINK("dma", XilinxAXIDMA, dma_mr,
|
||||
TYPE_MEMORY_REGION, MemoryRegion *),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void axidma_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -814,7 +814,6 @@ static const Property zdma_props[] = {
|
|||
DEFINE_PROP_UINT32("bus-width", XlnxZDMA, cfg.bus_width, 64),
|
||||
DEFINE_PROP_LINK("dma", XlnxZDMA, dma_mr,
|
||||
TYPE_MEMORY_REGION, MemoryRegion *),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void zdma_class_init(ObjectClass *klass, void *data)
|
||||
|
|
|
@ -710,7 +710,6 @@ static const Property xlnx_csu_dma_properties[] = {
|
|||
TYPE_STREAM_SINK, StreamSink *),
|
||||
DEFINE_PROP_LINK("dma", XlnxCSUDMA, dma_mr,
|
||||
TYPE_MEMORY_REGION, MemoryRegion *),
|
||||
DEFINE_PROP_END_OF_LIST(),
|
||||
};
|
||||
|
||||
static void xlnx_csu_dma_class_init(ObjectClass *klass, void *data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue