diff mbox series

[v5,4/4] qapi/machine-target: Restrict X86 features to X86 targets

Message ID 20210224224643.3369940-5-philmd@redhat.com
State New
Headers show
Series qapi: Restrict X86 features to X86 targets | expand

Commit Message

Philippe Mathieu-Daudé Feb. 24, 2021, 10:46 p.m. UTC
X86CPURegister32 enum and X86CPUFeatureWordInfo structure
are specific to the x86 architecture, restrict them to the
X86 targets.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
 qapi/machine-target.json | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/qapi/machine-target.json b/qapi/machine-target.json
index 106fbd2e9ed..a8a5b3f86f6 100644
--- a/qapi/machine-target.json
+++ b/qapi/machine-target.json
@@ -338,7 +338,8 @@ 
 # Since: 1.5
 ##
 { 'enum': 'X86CPURegister32',
-  'data': [ 'EAX', 'EBX', 'ECX', 'EDX', 'ESP', 'EBP', 'ESI', 'EDI' ] }
+  'data': [ 'EAX', 'EBX', 'ECX', 'EDX', 'ESP', 'EBP', 'ESI', 'EDI' ],
+  'if': 'defined(TARGET_I386)' }
 
 ##
 # @X86CPUFeatureWordInfo:
@@ -360,7 +361,8 @@ 
   'data': { 'cpuid-input-eax': 'int',
             '*cpuid-input-ecx': 'int',
             'cpuid-register': 'X86CPURegister32',
-            'features': 'int' } }
+            'features': 'int' },
+  'if': 'defined(TARGET_I386)' }
 
 ##
 # @DummyForceArrays:
@@ -370,4 +372,5 @@ 
 # Since: 2.5
 ##
 { 'struct': 'DummyForceArrays',
-  'data': { 'unused': ['X86CPUFeatureWordInfo'] } }
+  'data': { 'unused': ['X86CPUFeatureWordInfo'] },
+  'if': 'defined(TARGET_I386)' }