> -----Original Message-----
> From: Alessandro Di Federico <ale.q...@rev.ng>
> Sent: Saturday, June 19, 2021 3:37 AM
> To: qemu-devel@nongnu.org
> Cc: Taylor Simpson <tsimp...@quicinc.com>; Brian Cain
> <bc...@quicinc.com>; bab...@rev.ng; ni...@rev.ng; phi...@redhat.com;
> richard.hender...@linaro.org; Alessandro Di Federico <a...@rev.ng>
> Subject: [PATCH v5 10/14] target/hexagon: import parser for idef-parser
>
> From: Paolo Montesel <bab...@rev.ng>
>
> Signed-off-by: Alessandro Di Federico <a...@rev.ng>
> Signed-off-by: Paolo Montesel <bab...@rev.ng>
> ---
> diff --git a/target/hexagon/idef-parser/parser-helpers.h
> b/target/hexagon/idef-parser/parser-helpers.h
> new file mode 100644
> index 0000000000..fec3ad7819
> --- /dev/null
> +++ b/target/hexagon/idef-parser/parser-helpers.h
> @@ -0,0 +1,347 @@
> +
> +#define OUT_IMPL(c, locp, x) \
> + QEMU_GENERIC(typeof(*x), \
> + (char, str_print), \
> + (uint64_t, uint64_print), \
> + (int, int_print), \
> + (unsigned, uint_print), \
> + (HexValue, rvalue_out), \
> + out_assert \
> + )(c, locp, x); \
> +
QEMU_GENERIC has been removed
commit de51d8cbf0f9a9745ac02fb07e02063b7dfe35b9
Author: Richard Henderson <richard.hender...@linaro.org>
Date: Mon Jun 14 16:31:42 2021 -0700
qemu/compiler: Remove QEMU_GENERIC
All previous users now use C11 _Generic.
Signed-off-by: Richard Henderson <richard.hender...@linaro.org>
Reviewed-by: Alex Benn<C3><A9>e <alex.ben...@linaro.org>
Message-Id: <20210614233143.1221879-8-richard.hender...@linaro.org>
Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
You can now write this as
#define OUT_IMPL(c, locp, x) \
_Generic(*x, \
char: str_print, \
uint64_t: uint64_print, \
int: int_print, \
unsigned: uint_print, \
HexValue: rvalue_out, \
default: out_assert \
)(c, locp, x);
Thanks,
Taylor