[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [PATCH v5 10/14] target/hexagon: import parser for idef-parser
From: |
Taylor Simpson |
Subject: |
RE: [PATCH v5 10/14] target/hexagon: import parser for idef-parser |
Date: |
Tue, 22 Jun 2021 22:35:07 +0000 |
> -----Original Message-----
> From: Alessandro Di Federico <ale.qemu@rev.ng>
> Sent: Saturday, June 19, 2021 3:37 AM
> To: qemu-devel@nongnu.org
> Cc: Taylor Simpson <tsimpson@quicinc.com>; Brian Cain
> <bcain@quicinc.com>; babush@rev.ng; nizzo@rev.ng; philmd@redhat.com;
> richard.henderson@linaro.org; Alessandro Di Federico <ale@rev.ng>
> Subject: [PATCH v5 10/14] target/hexagon: import parser for idef-parser
>
> From: Paolo Montesel <babush@rev.ng>
>
> Signed-off-by: Alessandro Di Federico <ale@rev.ng>
> Signed-off-by: Paolo Montesel <babush@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.henderson@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.henderson@linaro.org>
Reviewed-by: Alex Benn<C3><A9>e <alex.bennee@linaro.org>
Message-Id: <20210614233143.1221879-8-richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@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
- RE: [PATCH v5 09/14] target/hexagon: import lexer for idef-parser, (continued)
- [PATCH v5 03/14] target/hexagon: import README for idef-parser, Alessandro Di Federico, 2021/06/19
- [PATCH v5 11/14] target/hexagon: call idef-parser functions, Alessandro Di Federico, 2021/06/19
- [PATCH v5 14/14] gitlab-ci: do not use qemu-project Docker registry, Alessandro Di Federico, 2021/06/19
- [PATCH v5 10/14] target/hexagon: import parser for idef-parser, Alessandro Di Federico, 2021/06/19
- [PATCH v5 13/14] target/hexagon: import additional tests, Alessandro Di Federico, 2021/06/19
- [PATCH v5 12/14] target/hexagon: remove unused macros and functions, Alessandro Di Federico, 2021/06/19