mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-24 22:25:11 +00:00
qapi: Use anonymous bases in QMP flat unions
Now that the generator supports it, we might as well use an anonymous base rather than breaking out a single-use Base structure, for all three of our current QMP flat unions. Oddly enough, this change does not affect the resulting introspection output (because we already inline the members of a base type into an object, and had no independent use of the base type reachable from a command). The case_whitelist now has to list the name of an implicit type; which is not too bad (consider it a feature if it makes it harder for developers to make the whitelist grow :) Backports commit 3666a97f78704b941c360dc917acb14c8774eca7 from qemu
This commit is contained in:
parent
e16b731799
commit
2f30651c40
|
@ -66,7 +66,6 @@ returns_whitelist = [
|
||||||
case_whitelist = [
|
case_whitelist = [
|
||||||
# From QMP:
|
# From QMP:
|
||||||
'ACPISlotType', # DIMM, visible through query-acpi-ospm-status
|
'ACPISlotType', # DIMM, visible through query-acpi-ospm-status
|
||||||
'CpuInfoBase', # CPU, visible through query-cpu
|
|
||||||
'CpuInfoMIPS', # PC, visible through query-cpu
|
'CpuInfoMIPS', # PC, visible through query-cpu
|
||||||
'CpuInfoTricore', # PC, visible through query-cpu
|
'CpuInfoTricore', # PC, visible through query-cpu
|
||||||
'InputAxis', # TODO: drop when x-input-send-event is fixed
|
'InputAxis', # TODO: drop when x-input-send-event is fixed
|
||||||
|
@ -74,6 +73,7 @@ case_whitelist = [
|
||||||
'QapiErrorClass', # all members, visible through errors
|
'QapiErrorClass', # all members, visible through errors
|
||||||
'UuidInfo', # UUID, visible through query-uuid
|
'UuidInfo', # UUID, visible through query-uuid
|
||||||
'X86CPURegister32', # all members, visible indirectly through qom-get
|
'X86CPURegister32', # all members, visible indirectly through qom-get
|
||||||
|
'q_obj_CpuInfo-base', # CPU, visible through query-cpu
|
||||||
]
|
]
|
||||||
|
|
||||||
enum_types = []
|
enum_types = []
|
||||||
|
|
Loading…
Reference in a new issue