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.
Move the QMP functions from cpu_init.c (which is always compiled) to
monitor.c (which is only compiled when system-emulation is selected).
Note ppc_cpu_class_by_name() is used by both file units, so we expose
its prototype in "cpu-qom.h".
Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org>
---
target/ppc/cpu-qom.h | 2 ++
target/ppc/cpu_init.c | 48 +----------------------------------------
target/ppc/monitor.c | 50 ++++++++++++++++++++++++++++++++++++++++++-
3 files changed, 52 insertions(+), 48 deletions(-)