Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
target/ppc: Add ISA v3.1 LEV indication in SRR1 for system call inter…
…rupts

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>
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
  • Loading branch information
npiggin authored and legoater committed Jun 25, 2023
1 parent a3c020d commit eb701f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions target/ppc/excp_helper.c
Expand Up @@ -1591,6 +1591,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;
}
Expand Down

0 comments on commit eb701f3

Please sign in to comment.