diff options
author | Marc-André Lureau | 2018-12-12 16:36:30 +0100 |
---|---|---|
committer | Marc-André Lureau | 2019-01-07 13:18:42 +0100 |
commit | edc24ccda4bb4357304bad7910a5039d2dac8daf (patch) | |
tree | 2b8124bc0ce1fbb48127db99b89578cf2322f15d /include/hw/i386/pc.h | |
parent | compat: replace PC_COMPAT_2_9 & HW_COMPAT_2_9 macros (diff) | |
download | qemu-edc24ccda4bb4357304bad7910a5039d2dac8daf.tar.gz qemu-edc24ccda4bb4357304bad7910a5039d2dac8daf.tar.xz qemu-edc24ccda4bb4357304bad7910a5039d2dac8daf.zip |
compat: replace PC_COMPAT_2_8 & HW_COMPAT_2_8 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 'include/hw/i386/pc.h')
-rw-r--r-- | include/hw/i386/pc.h | 29 |
1 files changed, 2 insertions, 27 deletions
diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h index fb79f0b988..12c47d2506 100644 --- a/include/hw/i386/pc.h +++ b/include/hw/i386/pc.h @@ -312,33 +312,8 @@ extern const size_t pc_compat_2_10_len; extern GlobalProperty pc_compat_2_9[]; extern const size_t pc_compat_2_9_len; -#define PC_COMPAT_2_8 \ - HW_COMPAT_2_8 \ - {\ - .driver = TYPE_X86_CPU,\ - .property = "tcg-cpuid",\ - .value = "off",\ - },\ - {\ - .driver = "kvmclock",\ - .property = "x-mach-use-reliable-get-clock",\ - .value = "off",\ - },\ - {\ - .driver = "ICH9-LPC",\ - .property = "x-smi-broadcast",\ - .value = "off",\ - },\ - {\ - .driver = TYPE_X86_CPU,\ - .property = "vmware-cpuid-freq",\ - .value = "off",\ - },\ - {\ - .driver = "Haswell-" TYPE_X86_CPU,\ - .property = "stepping",\ - .value = "1",\ - }, +extern GlobalProperty pc_compat_2_8[]; +extern const size_t pc_compat_2_8_len; #define PC_COMPAT_2_7 \ HW_COMPAT_2_7 \ |