]> git.proxmox.com Git - mirror_qemu.git/blobdiff - target/sparc/int64_helper.c
Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2020-12-19' into staging
[mirror_qemu.git] / target / sparc / int64_helper.c
index ba95bf228cc48da70ea0829591ad5702275c2446..7fb8ab211ca8d24d2d56d7b2c22619767530f579 100644 (file)
@@ -131,9 +131,7 @@ void sparc_cpu_do_interrupt(CPUState *cs)
     }
     tsptr = cpu_tsptr(env);
 
-    tsptr->tstate = (cpu_get_ccr(env) << 32) |
-        ((env->asi & 0xff) << 24) | ((env->pstate & 0xf3f) << 8) |
-        cpu_get_cwp64(env);
+    tsptr->tstate = sparc64_tstate(env);
     tsptr->tpc = env->pc;
     tsptr->tnpc = env->npc;
     tsptr->tt = intno;
@@ -148,7 +146,6 @@ void sparc_cpu_do_interrupt(CPUState *cs)
     }
 
     if (env->def.features & CPU_FEATURE_GL) {
-        tsptr->tstate |= (env->gl & 7ULL) << 40;
         cpu_gl_switch_gregs(env, env->gl + 1);
         env->gl++;
     }