diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2018-12-12 19:36:30 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2019-01-07 16:18:41 +0400 |
commit | abd93cc7df8521d463c24b2106fdde4f40a3fdd5 (patch) | |
tree | e9f567fcd4a8cfc23a30fef148d4f5c6b3667a7e /hw/core | |
parent | 638b47412b855867cffd291d16673f01f414882c (diff) |
compat: replace PC_COMPAT_3_1 & HW_COMPAT_3_1 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/core')
-rw-r--r-- | hw/core/machine.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/hw/core/machine.c b/hw/core/machine.c index bd644c976b..d6204967c3 100644 --- a/hw/core/machine.c +++ b/hw/core/machine.c @@ -22,6 +22,19 @@ #include "qemu/error-report.h" #include "sysemu/qtest.h" +GlobalProperty hw_compat_3_1[] = { + { + .driver = "pcie-root-port", + .property = "x-speed", + .value = "2_5", + },{ + .driver = "pcie-root-port", + .property = "x-width", + .value = "1", + }, +}; +const size_t hw_compat_3_1_len = G_N_ELEMENTS(hw_compat_3_1); + static char *machine_get_accel(Object *obj, Error **errp) { MachineState *ms = MACHINE(obj); |