[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 23/35] target/ppc/cpu.h: Put macro parameter in parentheses
From: |
David Gibson |
Subject: |
[PULL 23/35] target/ppc/cpu.h: Put macro parameter in parentheses |
Date: |
Mon, 3 Feb 2020 17:11:11 +1100 |
From: BALATON Zoltan <address@hidden>
Fix PPC_INPUT macro to work with more complex expressions by
protecting its argument with parentheses.
Signed-off-by: BALATON Zoltan <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: David Gibson <address@hidden>
---
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
- [PULL 11/35] ppc/pnv: remove useless "core-pir" property alias., (continued)
- [PULL 11/35] ppc/pnv: remove useless "core-pir" property alias., David Gibson, 2020/02/03
- [PULL 17/35] hw/ppc/Kconfig: Enable TPM_SPAPR as part of PSERIES config, David Gibson, 2020/02/03
- [PULL 12/35] ppc/pnv: Add support for "hostboot" mode, David Gibson, 2020/02/03
- [PULL 07/35] target/ppc: Add privileged message send facilities, David Gibson, 2020/02/03
- [PULL 13/35] tpm: Move tpm_tis_show_buffer to tpm_util.c, David Gibson, 2020/02/03
- [PULL 16/35] tpm_spapr: Support suspend and resume, David Gibson, 2020/02/03
- [PULL 22/35] spapr: Enable DD2.3 accelerated count cache flush in pseries-5.0 machine, David Gibson, 2020/02/03
- [PULL 25/35] ppc: spapr: Introduce FWNMI capability, David Gibson, 2020/02/03
- [PULL 15/35] tpm_spapr: Support TPM for ppc64 using CRQ based interface, David Gibson, 2020/02/03
- [PULL 18/35] docs/specs/tpm: reST-ify TPM documentation, David Gibson, 2020/02/03
- [PULL 23/35] target/ppc/cpu.h: Put macro parameter in parentheses,
David Gibson <=
- [PULL 24/35] Wrapper function to wait on condition for the main loop mutex, David Gibson, 2020/02/03
- [PULL 21/35] ppc/pnv: change the PowerNV machine devices to be non user creatable, David Gibson, 2020/02/03
- [PULL 04/35] hw/ppc/prep: Remove the deprecated "prep" machine and the OpenHackware BIOS, David Gibson, 2020/02/03
- [PULL 32/35] target/ppc: Use probe_access for LMW, STMW, David Gibson, 2020/02/03
- [PULL 28/35] ppc: spapr: Handle "ibm, nmi-register" and "ibm, nmi-interlock" RTAS calls, David Gibson, 2020/02/03
- [PULL 34/35] target/ppc: Use probe_write for DCBZ, David Gibson, 2020/02/03
- [PULL 27/35] target/ppc: Build rtas error log upon an MCE, David Gibson, 2020/02/03
- [PULL 30/35] ppc: spapr: Activate the FWNMI functionality, David Gibson, 2020/02/03