]> git.proxmox.com Git - mirror_qemu.git/commit
target/loongarch: Restrict 'qapi-commands-machine.h' to system emulation
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 23 Feb 2023 15:55:39 +0000 (16:55 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 2 Mar 2023 06:51:33 +0000 (07:51 +0100)
commit381b43f85508e7283442c13fb31728103b0b4d2b
treef5d7e623f066e38c807b5f678184d7b887a09e98
parent390dbc6e2e08c30b95597371b9fc74f6157e8d0e
target/loongarch: 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 'loongarch-qmp-cmds.c' unit (which is only compiled
when system emulation is selected).

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230223155540.30370-4-philmd@linaro.org>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
target/loongarch/cpu.c
target/loongarch/loongarch-qmp-cmds.c [new file with mode: 0644]
target/loongarch/meson.build