Signed-off-by: Marc-André Lureau <[email protected]>
---
qapi-schema.json | 3 ++-
monitor.c | 11 -----------
2 files changed, 2 insertions(+), 12 deletions(-)
diff --git a/qapi-schema.json b/qapi-schema.json
index d4e1552ddc..6c1adb35b5 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -6461,7 +6461,8 @@
# { "version": 3, "emulated": false, "kernel": true } ] }
#
##
-{ 'command': 'query-gic-capabilities', 'returns': ['GICCapability'] }
+{ 'command': 'query-gic-capabilities', 'returns': ['GICCapability'],
+ 'if': ['defined(NEED_CPU_H)', 'defined(TARGET_ARM)']}
##
# @CpuInstanceProperties:
diff --git a/monitor.c b/monitor.c
index c9f04652b4..6ddc3c7ff7 100644
--- a/monitor.c
+++ b/monitor.c
@@ -971,9 +971,6 @@ static void qmp_query_qmp_schema(QDict *qdict, QObject
**ret_data,
*/
static void qmp_unregister_commands_hack(void)
{
-#ifndef TARGET_ARM
- qmp_unregister_command(&qmp_commands, "query-gic-capabilities");
-#endif
#if !defined(TARGET_S390X) && !defined(TARGET_I386)
qmp_unregister_command(&qmp_commands, "query-cpu-model-expansion");
#endif
@@ -4146,14 +4143,6 @@ QemuOptsList qemu_mon_opts = {
},
};
-#ifndef TARGET_ARM
-GICCapabilityList *qmp_query_gic_capabilities(Error **errp)
-{
- error_setg(errp, QERR_FEATURE_DISABLED, "query-gic-capabilities");
- return NULL;
-}
-#endif
-
HotpluggableCPUList *qmp_query_hotpluggable_cpus(Error **errp)
{
MachineState *ms = MACHINE(qdev_get_machine());
--
2.14.1.146.gd35faa819