[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 5/6] target/ppc: Add ISA v3.1 LEV indication in SRR1 for syste
From: |
Nicholas Piggin |
Subject: |
[PATCH v4 5/6] target/ppc: Add ISA v3.1 LEV indication in SRR1 for system call interrupts |
Date: |
Tue, 30 May 2023 23:25:42 +1000 |
System call interrupts in ISA v3.1 CPUs add a LEV indication in SRR1
that corresponds with the LEV field of the instruction that caused the
interrupt.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
---
target/ppc/excp_helper.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/target/ppc/excp_helper.c b/target/ppc/excp_helper.c
index 1533ad0f13..d69bd0033a 100644
--- a/target/ppc/excp_helper.c
+++ b/target/ppc/excp_helper.c
@@ -1561,6 +1561,10 @@ static void powerpc_excp_books(PowerPCCPU *cpu, int excp)
vhc->hypercall(cpu->vhyp, cpu);
return;
}
+ if (env->insns_flags2 & PPC2_ISA310) {
+ /* ISAv3.1 puts LEV into SRR1 */
+ msr |= lev << 20;
+ }
if (lev == 1) {
new_msr |= (target_ulong)MSR_HVB;
}
--
2.40.1
- [PATCH v4 0/6] target/ppc: Assorted ppc target fixes, Nicholas Piggin, 2023/05/30
- [PATCH v4 3/6] target/ppc: Add SRR1 prefix indication to interrupt handlers, Nicholas Piggin, 2023/05/30
- [PATCH v4 1/6] target/ppc: Fix instruction loading endianness in alignment interrupt, Nicholas Piggin, 2023/05/30
- [PATCH v4 4/6] target/ppc: Implement HEIR SPR, Nicholas Piggin, 2023/05/30
- [PATCH v4 2/6] target/ppc: Change partition-scope translate interface, Nicholas Piggin, 2023/05/30
- [PATCH v4 5/6] target/ppc: Add ISA v3.1 LEV indication in SRR1 for system call interrupts,
Nicholas Piggin <=
- [PATCH v4 6/6] target/ppc: Better CTRL SPR implementation, Nicholas Piggin, 2023/05/30