[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 3/6] target/ppc: fix REQUIRE_HV macro definition
From: |
Fabiano Rosas |
Subject: |
Re: [PATCH 3/6] target/ppc: fix REQUIRE_HV macro definition |
Date: |
Fri, 07 Oct 2022 16:07:37 -0300 |
Matheus Ferst <matheus.ferst@eldorado.org.br> writes:
> The macro is missing a '{' after the if condition. Any use of REQUIRE_HV
> would cause a compilation error.
>
> Fixes: fc34e81acd51 ("target/ppc: add macros to check privilege level")
> Signed-off-by: Matheus Ferst <matheus.ferst@eldorado.org.br>
Reviewed-by: Fabiano Rosas <farosas@linux.ibm.com>
> ---
> target/ppc/translate.c | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/target/ppc/translate.c b/target/ppc/translate.c
> index eaac8670b1..435066c4a3 100644
> --- a/target/ppc/translate.c
> +++ b/target/ppc/translate.c
> @@ -6545,12 +6545,12 @@ static int64_t dw_compose_ea(DisasContext *ctx, int x)
> } \
> } while (0)
>
> -#define REQUIRE_HV(CTX) \
> - do { \
> - if (unlikely((CTX)->pr || !(CTX)->hv)) \
> - gen_priv_opc(CTX); \
> - return true; \
> - } \
> +#define REQUIRE_HV(CTX) \
> + do { \
> + if (unlikely((CTX)->pr || !(CTX)->hv)) { \
> + gen_priv_opc(CTX); \
> + return true; \
> + } \
> } while (0)
> #else
> #define REQUIRE_SV(CTX) do { gen_priv_opc(CTX); return true; } while (0)
- [PATCH 0/6] Enable doorbell instruction for POWER8 CPUs, Matheus Ferst, 2022/10/06
- [PATCH 1/6] target/ppc: fix msgclr/msgsnd insns flags, Matheus Ferst, 2022/10/06
- [PATCH 3/6] target/ppc: fix REQUIRE_HV macro definition, Matheus Ferst, 2022/10/06
- Re: [PATCH 3/6] target/ppc: fix REQUIRE_HV macro definition,
Fabiano Rosas <=
- [PATCH 2/6] target/ppc: fix msgsync insns flags, Matheus Ferst, 2022/10/06
- [PATCH 4/6] target/ppc: move msgclr/msgsnd to decodetree, Matheus Ferst, 2022/10/06
- [PATCH 5/6] target/ppc: move msgclrp/msgsndp to decodetree, Matheus Ferst, 2022/10/06
- [PATCH 6/6] target/ppc: move msgsync to decodetree, Matheus Ferst, 2022/10/06