On 12/19/22 13:10, Philippe Mathieu-Daudé wrote:
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é<phi...@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(-)

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

r~

Reply via email to