Since commit a0e61807a3 ("qapi: Remove QMP events and commands from
user-mode builds") we don't generate the "qapi-commands-machine.h"
header in a user-emulation-only build.
Extract the QMP functions from cpu.c (which is always compiled) to
the new 'sysemu/monitor.c' unit (which is only compiled when system
emulation is selected).
Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org>
---
target/mips/cpu.c | 29 -------------------------
target/mips/sysemu/meson.build | 1 +
target/mips/sysemu/monitor.c | 39 ++++++++++++++++++++++++++++++++++
3 files changed, 40 insertions(+), 29 deletions(-)
create mode 100644 target/mips/sysemu/monitor.c