diff options
author | Artyom Tarasenko <atar4qemu@gmail.com> | 2016-06-07 18:34:49 +0200 |
---|---|---|
committer | Artyom Tarasenko <atar4qemu@gmail.com> | 2017-01-18 22:03:44 +0100 |
commit | cbc3a6a4cc675516328a2b0d3602355d68b6302d (patch) | |
tree | 837af98184dabc03c037428d2cfd8f0bf6248df6 /target/sparc/int64_helper.c | |
parent | 6e040755f12eba34d2fa3d56b18de32d63fea631 (diff) | |
download | qemu-cbc3a6a4cc675516328a2b0d3602355d68b6302d.zip qemu-cbc3a6a4cc675516328a2b0d3602355d68b6302d.tar.gz qemu-cbc3a6a4cc675516328a2b0d3602355d68b6302d.tar.bz2 |
target-sparc: implement UA2005 GL register
Signed-off-by: Artyom Tarasenko <atar4qemu@gmail.com>
Diffstat (limited to 'target/sparc/int64_helper.c')
-rw-r--r-- | target/sparc/int64_helper.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/target/sparc/int64_helper.c b/target/sparc/int64_helper.c index 8300eb4..605747c 100644 --- a/target/sparc/int64_helper.c +++ b/target/sparc/int64_helper.c @@ -146,6 +146,12 @@ 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++; + } + switch (intno) { case TT_IVEC: if (!cpu_has_hypervisor(env)) { |