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-alpha/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target-alpha/translate.c') diff --git a/target-alpha/translate.c b/target-alpha/translate.c index f707d8deb9..8c4dd021f3 100644 --- a/target-alpha/translate.c +++ b/target-alpha/translate.c @@ -3477,7 +3477,7 @@ static inline void gen_intermediate_code_internal(CPUAlphaState *env, #ifdef DEBUG_DISAS if (qemu_loglevel_mask(CPU_LOG_TB_IN_ASM)) { qemu_log("IN: %s\n", lookup_symbol(pc_start)); - log_target_disas(pc_start, ctx.pc - pc_start, 1); + log_target_disas(env, pc_start, ctx.pc - pc_start, 1); qemu_log("\n"); } #endif -- cgit v1.2.3