]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/hppa: Replace MO_TE -> MO_BE
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 17 Mar 2025 13:31:49 +0000 (14:31 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 16 Oct 2025 15:07:27 +0000 (17:07 +0200)
We only build the PA-RISC targets using big endianness order:

  $ git grep TARGET_BIG_ENDIAN configs/targets/hppa-*
  configs/targets/hppa-linux-user.mak:5:TARGET_BIG_ENDIAN=y
  configs/targets/hppa-softmmu.mak:2:TARGET_BIG_ENDIAN=y

Therefore the MO_TE definition always expands to MO_BE. Use the
latter to simplify.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20251009101040.18378-10-philmd@linaro.org>

target/hppa/translate.c

index 6fec63cb433345a49450ec0a4ea51b8132f21937..853cba2ba4f152aa309ec7db6f9f61c79dfd1d1a 100644 (file)
@@ -106,7 +106,8 @@ typedef struct DisasContext {
 
 static inline MemOp mo_endian(DisasContext *ctx)
 {
-    return MO_TE;
+   /* The PSW_E bit sets the (little) endianness, but we don't implement it. */
+   return MO_BE;
 }
 
 /* Note that ssm/rsm instructions number PSW_W and PSW_E differently.  */