summaryrefslogtreecommitdiffstats
path: root/target/sparc/int64_helper.c
diff options
context:
space:
mode:
authorIgor Mammedov2017-08-24 18:31:26 +0200
committerEduardo Habkost2017-09-01 16:54:24 +0200
commit576e1c4c239621482474ba7b495a41bab2d16ae5 (patch)
treeb6c7f91c7c06642b697c42dc8914855b69f97afb /target/sparc/int64_helper.c
parentsparc: convert cpu models to SPARC cpu subclasses (diff)
downloadqemu-576e1c4c239621482474ba7b495a41bab2d16ae5.tar.gz
qemu-576e1c4c239621482474ba7b495a41bab2d16ae5.tar.xz
qemu-576e1c4c239621482474ba7b495a41bab2d16ae5.zip
sparc: embed sparc_def_t into CPUSPARCState
Make CPUSPARCState::def embedded so it would be allocated as part of cpu instance and we won't have to worry about cleaning def pointer up mannualy on cpu destruction. Signed-off-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <1503592308-93913-4-git-send-email-imammedo@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'target/sparc/int64_helper.c')
-rw-r--r--target/sparc/int64_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/sparc/int64_helper.c b/target/sparc/int64_helper.c
index f942973c22..f3e7f32de6 100644
--- a/target/sparc/int64_helper.c
+++ b/target/sparc/int64_helper.c
@@ -147,7 +147,7 @@ void sparc_cpu_do_interrupt(CPUState *cs)
}
}
- if (env->def->features & CPU_FEATURE_GL) {
+ if (env->def.features & CPU_FEATURE_GL) {
tsptr->tstate |= (env->gl & 7ULL) << 40;
cpu_gl_switch_gregs(env, env->gl + 1);
env->gl++;