@samitouri / QOSamiQemu / commits / aeb83fba30

monitor: Remove target_monitor_defs()

target_monitor_defs() is now only a dead stub. Remove as pointless. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20260427080738.77138-31-philmd@linaro.org>

Philippe Mathieu-Daudé committed Mar 20, 2026 at 14:14 UTC aeb83fba309a7f6e9764b8e770c6fd4f6d1a9cf9
4 files changed +1 -11
include/monitor/hmp.h
-2
@@ -30,8 +30,6 @@ struct MonitorDef {
30 int64_t (*get_value)(Monitor *mon, const MonitorDef *md, int offset);
31 };
32
33 -const MonitorDef *target_monitor_defs(void);
34 -
33 CPUArchState *mon_get_cpu_env(Monitor *mon);
34 CPUState *mon_get_cpu(Monitor *mon);
35
monitor/hmp.c
+1 -1
@@ -1615,7 +1615,7 @@ static int get_monitor_def(Monitor *mon, int64_t *pval, const char *name)
1615 if (cs == NULL) {
1616 return -1;
1617 }
1618 - md = cs->cc->sysemu_ops->monitor_defs ?: target_monitor_defs();
1618 + md = cs->cc->sysemu_ops->monitor_defs;
1619 if (md == NULL) {
1620 return -1;
1621 }
stubs/meson.build
-1
@@ -75,7 +75,6 @@ if have_system
75 stub_ss.add(files('igvm.c'))
76 endif
77 stub_ss.add(files('kvm.c'))
78 - stub_ss.add(files('target-monitor-defs.c'))
78 stub_ss.add(files('win32-kbd-hook.c'))
79 stub_ss.add(files('xen-hw-stub.c'))
80 stub_ss.add(files('qmp-arm-gic.c'))
stubs/target-monitor-defs.c deleted
-7
@@ -1,7 +0,0 @@
1 -#include "qemu/osdep.h"
2 -#include "monitor/hmp.h"
3 -
4 -const MonitorDef *target_monitor_defs(void)
5 -{
6 - return NULL;
7 -}