mirror of
https://github.com/qemu/qemu.git
synced 2026-07-08 17:46:10 +00:00
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>
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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'))
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
#include "qemu/osdep.h"
|
||||
#include "monitor/hmp.h"
|
||||
|
||||
const MonitorDef *target_monitor_defs(void)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
Reference in New Issue
Block a user