diff options
author | Igor Mammedov | 2017-08-24 18:31:26 +0200 |
---|---|---|
committer | Eduardo Habkost | 2017-09-01 16:54:24 +0200 |
commit | 576e1c4c239621482474ba7b495a41bab2d16ae5 (patch) | |
tree | b6c7f91c7c06642b697c42dc8914855b69f97afb /target/sparc/translate.c | |
parent | sparc: convert cpu models to SPARC cpu subclasses (diff) | |
download | qemu-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/translate.c')
-rw-r--r-- | target/sparc/translate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/sparc/translate.c b/target/sparc/translate.c index 3bde47be83..6290705b11 100644 --- a/target/sparc/translate.c +++ b/target/sparc/translate.c @@ -5756,7 +5756,7 @@ void gen_intermediate_code(CPUState *cs, TranslationBlock * tb) dc->npc = (target_ulong) tb->cs_base; dc->cc_op = CC_OP_DYNAMIC; dc->mem_idx = tb->flags & TB_FLAG_MMU_MASK; - dc->def = env->def; + dc->def = &env->def; dc->fpu_enabled = tb_fpu_enabled(tb->flags); dc->address_mask_32bit = tb_am_enabled(tb->flags); dc->singlestep = (cs->singlestep_enabled || singlestep); |