Expose m68k_monitor_defs within target/m68k/ and register it as CPUClass::legacy_monitor_defs hook.
Signed-off-by: Philippe Mathieu-Daudé <[email protected]> --- target/m68k/cpu.h | 2 ++ target/m68k/cpu.c | 1 + target/m68k/monitor.c | 5 +---- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/target/m68k/cpu.h b/target/m68k/cpu.h index d7f508a9e80..6f19b53158e 100644 --- a/target/m68k/cpu.h +++ b/target/m68k/cpu.h @@ -26,6 +26,8 @@ #include "qemu/cpu-float.h" #include "cpu-qom.h" +extern const MonitorDef *m68k_monitor_defs; + #define OS_BYTE 0 #define OS_WORD 1 #define OS_LONG 2 diff --git a/target/m68k/cpu.c b/target/m68k/cpu.c index d849a4a90fc..fcb14a44793 100644 --- a/target/m68k/cpu.c +++ b/target/m68k/cpu.c @@ -655,6 +655,7 @@ static void m68k_cpu_class_init(ObjectClass *c, const void *data) cc->sysemu_ops = &m68k_sysemu_ops; #endif cc->disas_set_info = m68k_cpu_disas_set_info; + cc->legacy_monitor_defs = m68k_monitor_defs; cc->tcg_ops = &m68k_tcg_ops; } diff --git a/target/m68k/monitor.c b/target/m68k/monitor.c index be7411edca6..97ec2bd38bc 100644 --- a/target/m68k/monitor.c +++ b/target/m68k/monitor.c @@ -38,7 +38,4 @@ static const MonitorDef monitor_defs[] = { { NULL }, }; -const MonitorDef *target_monitor_defs(void) -{ - return monitor_defs; -} +const MonitorDef *m68k_monitor_defs = monitor_defs; -- 2.53.0
