From f4359b9ffe895fda6d1ec3dd441cb8a208fb4dce Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sat, 8 Sep 2012 12:40:00 +0000 Subject: disas: avoid using cpu_single_env Pass around CPUArchState instead of using global cpu_single_env. Signed-off-by: Blue Swirl Acked-by: Richard Henderson Acked-by: Aurelien Jarno Acked-by: Guan Xuetao --- target-cris/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target-cris') diff --git a/target-cris/translate.c b/target-cris/translate.c index 755de65..f8ebc43a 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); -- cgit v1.1