disas: Fix build against Capstone v6
authorGustavo Romero <gustavo.romero@linaro.org>
Mon, 15 Jul 2024 21:39:43 +0000 (21:39 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Jul 2024 16:18:24 +0000 (18:18 +0200)
commit9971cbac2f30a89ddb094dc9627d2d16dc6e5875
tree5b8b1043c5861bccf84fdd4e3aed288f10f7c096
parentf8b64d35a625e49ee73f7d54ae80cb5503be975b
disas: Fix build against Capstone v6

Capstone v6 made major changes, such as renaming for AArch64, which
broke programs using the old headers, like QEMU. However, Capstone v6
provides the CAPSTONE_AARCH64_COMPAT_HEADER compatibility definition
allowing to build against v6 with the old definitions, so fix the QEMU
build using it.

We can lift that definition and switch to the new naming once our
supported distros have Capstone v6 in place.

Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org>
Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Link: https://lore.kernel.org/r/20240715213943.1210355-1-gustavo.romero@linaro.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/disas/capstone.h