diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-02-23 16:55:40 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2023-03-02 07:51:33 +0100 |
commit | 0f3fea217164e3925db91d46f21fc9fa11708e66 (patch) | |
tree | 7a34f9b494596f7d94bb628fc66679a40f15e93f /target/ppc/cpu-qom.h | |
parent | 381b43f85508e7283442c13fb31728103b0b4d2b (diff) | |
download | qemu-0f3fea217164e3925db91d46f21fc9fa11708e66.zip qemu-0f3fea217164e3925db91d46f21fc9fa11708e66.tar.gz qemu-0f3fea217164e3925db91d46f21fc9fa11708e66.tar.bz2 |
target/ppc: Restrict 'qapi-commands-machine.h' to system emulation
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). Rename monitor.c to arm-qmp-cmds.c.
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>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20230223155540.30370-5-philmd@linaro.org>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'target/ppc/cpu-qom.h')
-rw-r--r-- | target/ppc/cpu-qom.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target/ppc/cpu-qom.h b/target/ppc/cpu-qom.h index 0fbd8b7..9666f54 100644 --- a/target/ppc/cpu-qom.h +++ b/target/ppc/cpu-qom.h @@ -31,6 +31,8 @@ OBJECT_DECLARE_CPU_TYPE(PowerPCCPU, PowerPCCPUClass, POWERPC_CPU) +ObjectClass *ppc_cpu_class_by_name(const char *name); + typedef struct CPUArchState CPUPPCState; typedef struct ppc_tb_t ppc_tb_t; typedef struct ppc_dcr_t ppc_dcr_t; |