X86CPURegister32 enum and X86CPUFeatureWordInfo structure are specific to the x86 architecture, restrict them to the X86 targets.
Signed-off-by: Philippe Mathieu-Daudé <[email protected]> --- qapi/machine-target.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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)' } -- 2.26.2
