From: Richard Henderson <richard.henderson@linaro.org>
To: Gustavo Romero <gustavo.romero@linaro.org>,
qemu-devel@nongnu.org, peter.maydell@linaro.org
Cc: alex.bennee@linaro.org
Subject: Re: [PATCH] disas: Fix build against Capstone v6
Date: Tue, 16 Jul 2024 08:53:47 +1000 [thread overview]
Message-ID: <befe331b-7b81-4dc9-8879-bea5db9fa6c8@linaro.org> (raw)
In-Reply-To: <20240715213943.1210355-1-gustavo.romero@linaro.org>
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.romero@linaro.org>
> Suggested-by: Peter Maydell <peter.maydell@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.henderson@linaro.org>
r~
next prev parent reply other threads:[~2024-07-15 22:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-15 21:39 [PATCH] disas: Fix build against Capstone v6 Gustavo Romero
2024-07-15 22:53 ` Richard Henderson [this message]
2024-07-16 8:48 ` Paolo Bonzini
2024-07-16 9:38 ` Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=befe331b-7b81-4dc9-8879-bea5db9fa6c8@linaro.org \
--to=richard.henderson@linaro.org \
--cc=alex.bennee@linaro.org \
--cc=gustavo.romero@linaro.org \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).