OSDN Git Service

target/ppc/cpu.h: Put macro parameter in parentheses
authorBALATON Zoltan <balaton@eik.bme.hu>
Thu, 30 Jan 2020 02:06:18 +0000 (03:06 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 3 Feb 2020 00:33:10 +0000 (11:33 +1100)
Fix PPC_INPUT macro to work with more complex expressions by
protecting its argument with parentheses.

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Message-Id: <20200130021619.65FAB747871@zero.eik.bme.hu>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
target/ppc/cpu.h

index 96aeea1..3a1eb76 100644 (file)
@@ -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;