target_monitor_defs() is now only a dead stub. Remove as pointless.
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Message-Id: <[email protected]>
---
include/monitor/hmp.h | 2 --
monitor/hmp.c | 2 +-
stubs/target-monitor-defs.c | 7 -------
stubs/meson.build | 1 -
4 files changed, 1 insertion(+), 11 deletions(-)
delete mode 100644 stubs/target-monitor-defs.c
diff --git a/include/monitor/hmp.h b/include/monitor/hmp.h
index d423f54f904..9bf46795bd4 100644
--- a/include/monitor/hmp.h
+++ b/include/monitor/hmp.h
@@ -30,8 +30,6 @@ struct MonitorDef {
int64_t (*get_value)(Monitor *mon, const MonitorDef *md, int offset);
};
-const MonitorDef *target_monitor_defs(void);
-
CPUArchState *mon_get_cpu_env(Monitor *mon);
CPUState *mon_get_cpu(Monitor *mon);
diff --git a/monitor/hmp.c b/monitor/hmp.c
index ad8b0d1a72e..cc4390486e1 100644
--- a/monitor/hmp.c
+++ b/monitor/hmp.c
@@ -1615,7 +1615,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 3489b1f20dd..3b2f2680b19 100644
--- a/stubs/meson.build
+++ b/stubs/meson.build
@@ -75,7 +75,6 @@ if have_system
stub_ss.add(files('igvm.c'))
endif
stub_ss.add(files('kvm.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('qmp-arm-gic.c'))
--
2.53.0