@samitouri / QOSamiQemu / commits / dad35d0937

disas: Replace straggling CS_ARCH_SYSZ

When updating to capstone v6, the define CS_ARCH_SYSZ was replaced with CS_ARCH_SYSTEMZ, except here. On systems without capstone-devel installed, this causes a compile error: ../disas/disas-host.c: In function ‘initialize_debug_host’: ../disas/disas-host.c:78:24: error: ‘CS_ARCH_SYSZ’ undeclared (first use in this function); did you mean ‘CS_ARCH_SH’? 78 | s->info.cap_arch = CS_ARCH_SYSZ; | ^~~~~~~~~~~~ | CS_ARCH_SH ../disas/disas-host.c:78:24: note: each undeclared identifier is reported only once for each function it appears in Rather than making capstone required, replace the constant with the same one used elsewhere after that change. Fixes: c8220a096f ("target/s390x: Update capstone disassembly to v6") Signed-off-by: Eric Farman <farman@linux.ibm.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com> Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-ID: <20260824143033.306201-1-farman@linux.ibm.com>

Eric Farman committed Aug 24, 2026 at 16:30 UTC dad35d0937ff84eff7be8ed63bebb14443564ace
1 file changed +1 -1
disas/disas-host.c
+1 -1
@@ -75,7 +75,7 @@ static void initialize_debug_host(CPUDebug *s)
75 #elif defined(__m68k__)
76 s->info.print_insn = print_insn_m68k;
77 #elif defined(__s390x__)
78 - s->info.cap_arch = CS_ARCH_SYSZ;
78 + s->info.cap_arch = CS_ARCH_SYSTEMZ;
79 s->info.cap_insn_unit = 2;
80 s->info.cap_insn_split = 6;
81 #elif defined(__hppa__)