From: BALATON Zoltan <bala...@eik.bme.hu> Fix PPC_INPUT macro to work with more complex expressions by protecting its argument with parentheses.
Signed-off-by: BALATON Zoltan <bala...@eik.bme.hu> Message-Id: <20200130021619.65fab747...@zero.eik.bme.hu> Signed-off-by: David Gibson <da...@gibson.dropbear.id.au> --- target/ppc/cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/ppc/cpu.h b/target/ppc/cpu.h index 96aeea1934..3a1eb76004 100644 --- a/target/ppc/cpu.h +++ b/target/ppc/cpu.h @@ -180,7 +180,7 @@ enum { POWERPC_EXCP_TRAP = 0x40, }; -#define PPC_INPUT(env) (env->bus_model) +#define PPC_INPUT(env) ((env)->bus_model) /*****************************************************************************/ typedef struct opc_handler_t opc_handler_t; -- 2.24.1