diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2012-09-08 12:40:00 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2012-11-10 13:49:20 +0000 |
commit | f4359b9ffe895fda6d1ec3dd441cb8a208fb4dce (patch) | |
tree | 4a7079ca55c6beb87f25b7bc449a9e1a67c68e51 /target-cris | |
parent | 036208c9ab50b0910c24b28a440c15e66e8a2652 (diff) | |
download | qemu-f4359b9ffe895fda6d1ec3dd441cb8a208fb4dce.tar.gz qemu-f4359b9ffe895fda6d1ec3dd441cb8a208fb4dce.tar.bz2 qemu-f4359b9ffe895fda6d1ec3dd441cb8a208fb4dce.zip |
disas: avoid using cpu_single_env
Pass around CPUArchState instead of using global cpu_single_env.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Acked-by: Richard Henderson <rth@twiddle.net>
Acked-by: Aurelien Jarno <aurelien@aurel32.net>
Acked-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
Diffstat (limited to 'target-cris')
-rw-r--r-- | target-cris/translate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-cris/translate.c b/target-cris/translate.c index 755de659df..f8ebc43a86 100644 --- a/target-cris/translate.c +++ b/target-cris/translate.c @@ -3413,7 +3413,7 @@ gen_intermediate_code_internal(CPUCRISState *env, TranslationBlock *tb, #ifdef DEBUG_DISAS #if !DISAS_CRIS if (qemu_loglevel_mask(CPU_LOG_TB_IN_ASM)) { - log_target_disas(pc_start, dc->pc - pc_start, + log_target_disas(env, pc_start, dc->pc - pc_start, dc->env->pregs[PR_VR]); qemu_log("\nisize=%d osize=%td\n", dc->pc - pc_start, gen_opc_ptr - gen_opc_buf); |