Rather a runtime endianness check via env MSR over a build-time one. Now CPU can change endianness at runtime.
Signed-off-by: Philippe Mathieu-Daudé <[email protected]> --- target/ppc/internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/ppc/internal.h b/target/ppc/internal.h index 714629079b5..7dfca0b41a3 100644 --- a/target/ppc/internal.h +++ b/target/ppc/internal.h @@ -31,7 +31,7 @@ static inline bool ppc_env_is_little_endian(const CPUPPCState *env) static inline MemOp mo_endian_env(const CPUPPCState *env) { - return MO_TE; + return ppc_env_is_little_endian(env) ? MO_LE : MO_BE; } /* PM instructions */ -- 2.52.0
