sparc64: switch to MMU global registers in more MMU related traps
PATCH 1/1 sparc64: switch to MMU global registers in more MMU related traps
From: Igor V. Kovalenko <[email protected]>
- extended range of MMU related traps which use MMU global registers, as listed in Ultrasparc-IIi document
- no visible changes, since emulation do not cause added traps
--- target-sparc/op_helper.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
target-sparc/op_helper.c +3 -3
@@ -3447,10 +3447,10 @@ void do_interrupt(CPUState *env)change_pstate (PS_PEF |PS_PRIV |PS_IG );break ;case TT_TFAULT : -case TT_TMISS :case TT_DFAULT : -case TT_DMISS : -case TT_DPROT : + case TT_TMISS ... TT_TMISS+3: + case TT_DMISS ... TT_DMISS+3: + case TT_DPROT ... TT_DPROT+3:change_pstate (PS_PEF |PS_PRIV |PS_MG );break ;default :
Blue Swirl
AppliedThanks, applied.
Quoted 33 lines · Igor V. Kovalenko
From: Igor V. Kovalenko <[email protected]>
- extended range of MMU related traps which use MMU global registers, as listed in Ultrasparc-IIi document
- no visible changes, since emulation do not cause added trapsSigned-off-by Igor V. Kovalenko <[email protected]>---
target-sparc/op_helper.c | 6 +++---1 files changed, 3 insertions(+), 3 deletions(-)target-sparc/op_helper.c +0
-0@@ -3447,10 +3447,10 @@ void do_interrupt(CPUState *env) change_pstate(PS_PEF | PS_PRIV | PS_IG); break;case
TT_TFAULT:
- caseTT_TMISS:
caseTT_DFAULT:
- caseTT_DMISS:
- caseTT_DPROT:
+ caseTT_TMISS... TT_TMISS+3:
+ caseTT_DMISS... TT_DMISS+3:
+ caseTT_DPROT... TT_DPROT+3:
change_pstate(PS_PEF | PS_PRIV | PS_MG);
break;
default: