On 7/16/24 07:39, Gustavo Romero wrote:
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.rom...@linaro.org>
Suggested-by: Peter Maydell <peter.mayd...@linaro.org>
---
  include/disas/capstone.h | 1 +
  1 file changed, 1 insertion(+)

diff --git a/include/disas/capstone.h b/include/disas/capstone.h
index e29068dd97..a11985151d 100644
--- a/include/disas/capstone.h
+++ b/include/disas/capstone.h
@@ -3,6 +3,7 @@
#ifdef CONFIG_CAPSTONE +#define CAPSTONE_AARCH64_COMPAT_HEADER
  #include <capstone.h>
#else

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>


r~

Reply via email to