mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
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>
This commit is contained in:
parent
3e8031525a
commit
edc24ccda4
10 changed files with 87 additions and 86 deletions
29
hw/i386/pc.c
29
hw/i386/pc.c
|
@ -195,6 +195,35 @@ GlobalProperty pc_compat_2_9[] = {
|
|||
};
|
||||
const size_t pc_compat_2_9_len = G_N_ELEMENTS(pc_compat_2_9);
|
||||
|
||||
GlobalProperty pc_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",
|
||||
},
|
||||
};
|
||||
const size_t pc_compat_2_8_len = G_N_ELEMENTS(pc_compat_2_8);
|
||||
|
||||
void gsi_handler(void *opaque, int n, int level)
|
||||
{
|
||||
GSIState *s = opaque;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue