The env->hflags is computed in ppc_cpu_reset(), using the MSR register as input. But at the point ppc_disas_set_info() is called the MSR_LE bit in env->hflags doesn't contain the same information that env->msr.
Signed-off-by: Maxiwell S. Garcia <maxiw...@linux.ibm.com> Signed-off-by: Fabiano Rosas <faro...@linux.ibm.com> --- target/ppc/translate_init.inc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/ppc/translate_init.inc.c b/target/ppc/translate_init.inc.c index d33d65dff7..a0b384da9e 100644 --- a/target/ppc/translate_init.inc.c +++ b/target/ppc/translate_init.inc.c @@ -10830,7 +10830,7 @@ static void ppc_disas_set_info(CPUState *cs, disassemble_info *info) PowerPCCPU *cpu = POWERPC_CPU(cs); CPUPPCState *env = &cpu->env; - if ((env->hflags >> MSR_LE) & 1) { + if (msr_le) { info->endian = BFD_ENDIAN_LITTLE; } info->mach = env->bfd_mach; -- 2.20.1