target_monitor_defs() is now only a dead stub. Remove as pointless.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
include/monitor/hmp.h | 1 -
monitor/hmp.c | 2 +-
stubs/target-monitor-defs.c | 7 -------
stubs/meson.build | 1 -
4 files changed, 1 insertion(+), 10 deletions(-)
delete mode 100644 stubs/target-monitor-defs.c
diff --git a/include/monitor/hmp.h b/include/monitor/hmp.h
index 516089eb5c6..cabb2c55f8e 100644
--- a/include/monitor/hmp.h
+++ b/include/monitor/hmp.h
@@ -23,7 +23,6 @@ struct MonitorDef {
int64_t (*get_value)(Monitor *mon, const MonitorDef *md, int offset);
};
-const MonitorDef *target_monitor_defs(void);
int target_get_monitor_def(CPUState *cs, const char *name, uint64_t *pval);
CPUArchState *mon_get_cpu_env(Monitor *mon);
diff --git a/monitor/hmp.c b/monitor/hmp.c
index 6cf2f3e65ff..3d812ea3068 100644
--- a/monitor/hmp.c
+++ b/monitor/hmp.c
@@ -1613,7 +1613,7 @@ static int get_monitor_def(Monitor *mon, int64_t *pval, const char *name)
if (cs == NULL) {
return -1;
}
- md = cs->cc->sysemu_ops->monitor_defs ?: target_monitor_defs();
+ md = cs->cc->sysemu_ops->monitor_defs;
if (md == NULL) {
return -1;
}
diff --git a/stubs/target-monitor-defs.c b/stubs/target-monitor-defs.c
deleted file mode 100644
index 0dd4cdb34f6..00000000000
--- a/stubs/target-monitor-defs.c
+++ /dev/null
@@ -1,7 +0,0 @@
-#include "qemu/osdep.h"
-#include "monitor/hmp.h"
-
-const MonitorDef *target_monitor_defs(void)
-{
- return NULL;
-}
diff --git a/stubs/meson.build b/stubs/meson.build
index 7189ff63ed5..10eb68ab55e 100644
--- a/stubs/meson.build
+++ b/stubs/meson.build
@@ -75,7 +75,6 @@ if have_system
endif
stub_ss.add(files('kvm.c'))
stub_ss.add(files('target-get-monitor-def.c'))
- stub_ss.add(files('target-monitor-defs.c'))
stub_ss.add(files('win32-kbd-hook.c'))
stub_ss.add(files('xen-hw-stub.c'))
stub_ss.add(files('monitor-arm-gic.c'))
--
2.53.0