OSDN Git Service

target/mips: Restrict 'qapi-commands-machine.h' to system emulation
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 19 Dec 2022 11:14:46 +0000 (12:14 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 13 Jan 2023 15:22:57 +0000 (16:22 +0100)
commit6ba97c48a64d059ddfa5400330dfaf5982f5f2c8
treecc92df712e47a8a10c02e5c6c9f3311618ef6e93
parent026334610f40fe8c0abac9565eddee1d6cc99de7
target/mips: 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.

Extract the QMP functions from cpu.c (which is always compiled) to
the new 'sysemu/mips-qmp-cmds.c' unit (which is only compiled when
system emulation is selected).

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20221219211034.70491-4-philmd@linaro.org>
target/mips/cpu.c
target/mips/sysemu/meson.build
target/mips/sysemu/mips-qmp-cmds.c [new file with mode: 0644]