OSDN Git Service

target/arm: Restrict 'qapi-commands-machine.h' to system emulation
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 23 Feb 2023 15:55:37 +0000 (16:55 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 2 Mar 2023 06:51:06 +0000 (07:51 +0100)
commit3362f04dbc6a66cd8f2c9f218b84c5c9f9559411
treeff7b523f4a560237b89367088b61fbdabbe408b0
parent76f5801a836504b21cf71e93d5a522d92cb435ca
target/arm: 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 helper.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.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230223155540.30370-2-philmd@linaro.org>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
[Straightforward conflict with commit 9def656e7a2 resolved]
target/arm/arm-qmp-cmds.c [moved from target/arm/monitor.c with 90% similarity]
target/arm/helper.c
target/arm/meson.build