From 4f6c60683f2033dd9177ca0bf1299ffea1c07dd9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Philippe=20Mathieu-Daud=C3=A9?= Date: Wed, 12 Mar 2025 10:27:08 +0100 Subject: [PATCH] target/openrisc: Replace MO_TE -> MO_BE MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit We only build the OpenRISC targets using big endianness order: $ git grep TARGET_BIG_ENDIAN configs/targets/or1k-* configs/targets/or1k-linux-user.mak:2:TARGET_BIG_ENDIAN=y configs/targets/or1k-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é Reviewed-by: Richard Henderson Message-Id: <20251010070702.51484-12-philmd@linaro.org> --- target/openrisc/translate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/target/openrisc/translate.c b/target/openrisc/translate.c index 1a43e5ab6f..3d9dfd663a 100644 --- a/target/openrisc/translate.c +++ b/target/openrisc/translate.c @@ -61,7 +61,8 @@ typedef struct DisasContext { static inline MemOp mo_endian(DisasContext *dc) { - return MO_TE; + /* The SR_LEE bit sets the (little) endianness, but we don't implement it. */ + return MO_BE; } static inline bool is_user(DisasContext *dc) -- 2.47.3