mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 10:13:56 -06:00
compat: replace PC_COMPAT_2_1 & HW_COMPAT_2_1 macros
Use static arrays instead. I decided to rename the conflicting pc_compat_2_1() function with pc_compat_2_1_fn(). 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
1c30044e1a
commit
c4fc5695b7
7 changed files with 60 additions and 57 deletions
15
hw/i386/pc.c
15
hw/i386/pc.c
|
@ -536,6 +536,21 @@ GlobalProperty pc_compat_2_2[] = {
|
|||
};
|
||||
const size_t pc_compat_2_2_len = G_N_ELEMENTS(pc_compat_2_2);
|
||||
|
||||
GlobalProperty pc_compat_2_1[] = {
|
||||
PC_CPU_MODEL_IDS("2.1.0")
|
||||
{
|
||||
.driver = "coreduo" "-" TYPE_X86_CPU,
|
||||
.property = "vmx",
|
||||
.value = "on",
|
||||
},
|
||||
{
|
||||
.driver = "core2duo" "-" TYPE_X86_CPU,
|
||||
.property = "vmx",
|
||||
.value = "on",
|
||||
},
|
||||
};
|
||||
const size_t pc_compat_2_1_len = G_N_ELEMENTS(pc_compat_2_1);
|
||||
|
||||
void gsi_handler(void *opaque, int n, int level)
|
||||
{
|
||||
GSIState *s = opaque;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue