diff options
| author | Marc-André Lureau | 2018-12-12 16:36:30 +0100 |
|---|---|---|
| committer | Marc-André Lureau | 2019-01-07 13:18:41 +0100 |
| commit | 503224f4c8d1469ea9c00a2017334a455044d822 (patch) | |
| tree | e15b626fc048eb9fedac41f248837b4a400e08d9 /hw/arm | |
| parent | compat: replace PC_COMPAT_2_11 & HW_COMPAT_2_11 macros (diff) | |
| download | qemu-503224f4c8d1469ea9c00a2017334a455044d822.tar.gz qemu-503224f4c8d1469ea9c00a2017334a455044d822.tar.xz qemu-503224f4c8d1469ea9c00a2017334a455044d822.zip | |
compat: replace PC_COMPAT_2_10 & HW_COMPAT_2_10 macros
Use static arrays instead.
Suggested-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Acked-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'hw/arm')
| -rw-r--r-- | hw/arm/virt.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 548b6efa93..75ab14305a 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -1909,12 +1909,8 @@ DEFINE_VIRT_MACHINE(2, 11) static void virt_machine_2_10_options(MachineClass *mc) { - static GlobalProperty compat[] = { - HW_COMPAT_2_10 - }; - virt_machine_2_11_options(mc); - compat_props_add(mc->compat_props, compat, G_N_ELEMENTS(compat)); + compat_props_add(mc->compat_props, hw_compat_2_10, hw_compat_2_10_len); /* before 2.11 we never faulted accesses to bad addresses */ mc->ignore_memory_transaction_failures = true; } |
