summaryrefslogtreecommitdiffstats
path: root/target-ppc
diff options
context:
space:
mode:
authorBlue Swirl2012-09-08 14:40:00 +0200
committerBlue Swirl2012-11-10 14:49:20 +0100
commitf4359b9ffe895fda6d1ec3dd441cb8a208fb4dce (patch)
tree4a7079ca55c6beb87f25b7bc449a9e1a67c68e51 /target-ppc
parentslirp: remove unused function u_sleep (diff)
downloadqemu-f4359b9ffe895fda6d1ec3dd441cb8a208fb4dce.tar.gz
qemu-f4359b9ffe895fda6d1ec3dd441cb8a208fb4dce.tar.xz
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-ppc')
-rw-r--r--target-ppc/translate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-ppc/translate.c b/target-ppc/translate.c
index 56725e6a61..f0d49eea3f 100644
--- a/target-ppc/translate.c
+++ b/target-ppc/translate.c
@@ -9790,7 +9790,7 @@ static inline void gen_intermediate_code_internal(CPUPPCState *env,
flags = env->bfd_mach;
flags |= ctx.le_mode << 16;
qemu_log("IN: %s\n", lookup_symbol(pc_start));
- log_target_disas(pc_start, ctx.nip - pc_start, flags);
+ log_target_disas(env, pc_start, ctx.nip - pc_start, flags);
qemu_log("\n");
}
#endif