From 237c0af0175d78955a3007372a2c9789a05705be Mon Sep 17 00:00:00 2001 From: j_mayer Date: Sat, 29 Sep 2007 12:01:46 +0000 Subject: Define the proper bfd_mach to be used by the disassembler for each PowerPC emulated CPU. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3257 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-ppc/translate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'target-ppc/translate.c') diff --git a/target-ppc/translate.c b/target-ppc/translate.c index d370b3ed86..2e5cb6bcd4 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -6108,7 +6108,8 @@ static inline int gen_intermediate_code_internal (CPUState *env, } if (loglevel & CPU_LOG_TB_IN_ASM) { int flags; - flags = msr_le; + flags = env->bfd_mach; + flags |= msr_le << 16; fprintf(logfile, "IN: %s\n", lookup_symbol(pc_start)); target_disas(logfile, pc_start, ctx.nip - pc_start, flags); fprintf(logfile, "\n"); -- cgit v1.2.3