On 8/24/26 10:30 AM, Eric Farman wrote:
> 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 <[email protected]>

Thanks Eric, I just noticed the same compile error and this resolved it
for me.

Reviewed-by: Matthew Rosato <[email protected]>


Reply via email to