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

Guard qmp_query_cpu_definitions() within CONFIG_USER_ONLY; move
x86_cpu_class_check_missing_features() closer since it is only used
by this QMP command handler.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230223155540.30370-3-philmd@linaro.org>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
target/i386/cpu.c