Browse Source

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 <balaton@eik.bme.hu>
Message-Id: <20200130021619.65FAB747871@zero.eik.bme.hu>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
pull/89/head
BALATON Zoltan 6 years ago
committed by David Gibson
parent
commit
254581039e
  1. 2
      target/ppc/cpu.h

2
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;

Loading…
Cancel
Save