[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 6/6] target/ppc: add support for POWER9 HILE
From: |
Cédric Le Goater |
Subject: |
[Qemu-ppc] [PATCH 6/6] target/ppc: add support for POWER9 HILE |
Date: |
Mon, 15 Jan 2018 19:04:06 +0100 |
Signed-off-by: Cédric Le Goater <address@hidden>
---
target/ppc/cpu.h | 1 +
target/ppc/excp_helper.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/target/ppc/cpu.h b/target/ppc/cpu.h
index dc6820c5eb99..14aaa87fe825 100644
--- a/target/ppc/cpu.h
+++ b/target/ppc/cpu.h
@@ -2012,6 +2012,7 @@ void ppc_compat_add_property(Object *obj, const char
*name,
#define HID0_DOZE (1 << 23) /* pre-2.06 */
#define HID0_NAP (1 << 22) /* pre-2.06 */
#define HID0_HILE PPC_BIT(19) /* POWER8 */
+#define HID0_POWER9_HILE PPC_BIT(4)
/*****************************************************************************/
/* PowerPC Instructions types definitions */
diff --git a/target/ppc/excp_helper.c b/target/ppc/excp_helper.c
index 37d241072685..4e548a448747 100644
--- a/target/ppc/excp_helper.c
+++ b/target/ppc/excp_helper.c
@@ -654,7 +654,7 @@ static inline void powerpc_excp(PowerPCCPU *cpu, int
excp_model, int excp)
}
} else if (excp_model == POWERPC_EXCP_POWER8) {
if (new_msr & MSR_HVB) {
- if (env->spr[SPR_HID0] & HID0_HILE) {
+ if (env->spr[SPR_HID0] & (HID0_HILE | HID0_POWER9_HILE)) {
new_msr |= (target_ulong)1 << MSR_LE;
}
} else if (env->spr[SPR_LPCR] & LPCR_ILE) {
--
2.13.6
- [Qemu-ppc] [PATCH 0/6] ppc/pnv: misc fixes and cleanups for POWER9, Cédric Le Goater, 2018/01/15
- [Qemu-ppc] [PATCH 1/6] ppc/pnv: use POWER9 DD2 processor, Cédric Le Goater, 2018/01/15
- [Qemu-ppc] [PATCH 2/6] ppc/pnv: change core mask for POWER9, Cédric Le Goater, 2018/01/15
- [Qemu-ppc] [PATCH 3/6] ppc/pnv: introduce pnv*_is_power9() helpers, Cédric Le Goater, 2018/01/15
- [Qemu-ppc] [PATCH 4/6] ppc/pnv: fix XSCOM core addressing on POWER9, Cédric Le Goater, 2018/01/15
- [Qemu-ppc] [PATCH 5/6] ppc/pnv: change initrd address, Cédric Le Goater, 2018/01/15
- [Qemu-ppc] [PATCH 6/6] target/ppc: add support for POWER9 HILE,
Cédric Le Goater <=
- Re: [Qemu-ppc] [PATCH 0/6] ppc/pnv: misc fixes and cleanups for POWER9, David Gibson, 2018/01/16