mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
qapi: change the type of TargetInfo.arch from string to enum SysEmuTarget
Now that we have @SysEmuTarget, it makes sense to restrict @TargetInfo.@arch to valid sysemu targets at the schema level. Cc: "Daniel P. Berrange" <berrange@redhat.com> Cc: Eric Blake <eblake@redhat.com> Cc: Markus Armbruster <armbru@redhat.com> Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20180427192852.15013-4-lersek@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
committed by
Markus Armbruster
parent
9a801c7d6c
commit
b47aa7b3d4
@@ -5,6 +5,8 @@
|
||||
# = Miscellanea
|
||||
##
|
||||
|
||||
{ 'include': 'common.json' }
|
||||
|
||||
##
|
||||
# @qmp_capabilities:
|
||||
#
|
||||
@@ -2449,12 +2451,12 @@
|
||||
#
|
||||
# Information describing the QEMU target.
|
||||
#
|
||||
# @arch: the target architecture (eg "x86_64", "i386", etc)
|
||||
# @arch: the target architecture
|
||||
#
|
||||
# Since: 1.2.0
|
||||
##
|
||||
{ 'struct': 'TargetInfo',
|
||||
'data': { 'arch': 'str' } }
|
||||
'data': { 'arch': 'SysEmuTarget' } }
|
||||
|
||||
##
|
||||
# @query-target:
|
||||
|
||||
Reference in New Issue
Block a user