monitor: Do not check TARGET_S390X to build s390x commands

These commands are filtered at build-time for s390x binary.
By using the recently introduced HMPCommand::arch_bitmask flag
we can filter them at runtime, making it possible to compile
hmp-commands[-info].hx files once.

Since the methods are used inconditionally within hw/s390x/,
define them in the same stub file.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Acked-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Eric Farman <farman@linux.ibm.com>
Message-Id: <20260427080738.77138-14-philmd@linaro.org>
This commit is contained in:
Philippe Mathieu-Daudé
2026-04-10 19:25:13 +02:00
parent b0386fb498
commit 1d6cf922e4
7 changed files with 28 additions and 13 deletions

View File

@@ -36,11 +36,6 @@
#include "qapi/qapi-commands-misc.h"
#include "qapi/qapi-commands-machine.h"
#if defined(TARGET_S390X)
#include "hw/s390x/storage-keys.h"
#include "hw/s390x/storage-attributes.h"
#endif
/* Make devices configuration available for use in hmp-commands*.hx templates */
#include CONFIG_DEVICES