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-sparc/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target-sparc') diff --git a/target-sparc/translate.c b/target-sparc/translate.c index 9e46f1424b..1d8b8ad9b9 100644 --- a/target-sparc/translate.c +++ b/target-sparc/translate.c @@ -5353,7 +5353,7 @@ static inline void gen_intermediate_code_internal(TranslationBlock * tb, if (qemu_loglevel_mask(CPU_LOG_TB_IN_ASM)) { qemu_log("--------------\n"); qemu_log("IN: %s\n", lookup_symbol(pc_start)); - log_target_disas(pc_start, last_pc + 4 - pc_start, 0); + log_target_disas(env, pc_start, last_pc + 4 - pc_start, 0); qemu_log("\n"); } #endif -- cgit v1.2.3