From: BALATON Zoltan Date: Thu, 30 Jan 2020 02:06:18 +0000 (+0100) Subject: target/ppc/cpu.h: Put macro parameter in parentheses X-Git-Tag: v5.0.0-rc0~113^2~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=254581039e9fd5e72e4ecbbcd881f8c85c164031;p=thirdparty%2Fqemu.git target/ppc/cpu.h: Put macro parameter in parentheses Fix PPC_INPUT macro to work with more complex expressions by protecting its argument with parentheses. Signed-off-by: BALATON Zoltan Message-Id: <20200130021619.65FAB747871@zero.eik.bme.hu> Signed-off-by: David Gibson --- diff --git a/target/ppc/cpu.h b/target/ppc/cpu.h index 96aeea1934d..3a1eb76004e 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;