diff options
Diffstat (limited to 'target-sparc/helper.c')
-rw-r--r-- | target-sparc/helper.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/target-sparc/helper.c b/target-sparc/helper.c index 70343e3052..31b61bc42f 100644 --- a/target-sparc/helper.c +++ b/target-sparc/helper.c @@ -699,9 +699,10 @@ void cpu_reset(CPUSPARCState *env) env->psrps = 1; CC_OP = CC_OP_FLAGS; #ifdef TARGET_SPARC64 - env->pstate = PS_PRIV; + env->pstate = PS_PRIV|PS_RED|PS_PEF|PS_AG; env->hpstate = HS_PRIV; - env->tsptr = &env->ts[env->tl & MAXTL_MASK]; + env->tl = env->maxtl; + cpu_tsptr(env)->tt = TT_POWER_ON_RESET; env->lsu = 0; #else env->mmuregs[0] &= ~(MMU_E | MMU_NF); |