[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 03/12] target/mips: Replace MO_TE by mo_endian_env() in get_pte()
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 03/12] target/mips: Replace MO_TE by mo_endian_env() in get_pte() |
Date: |
Mon, 30 Sep 2024 11:10:52 +0200 |
Replace compile-time MO_TE evaluation by runtime mo_endian_env()
one, which expand target endianness from vCPU env.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
target/mips/tcg/sysemu/tlb_helper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/mips/tcg/sysemu/tlb_helper.c
b/target/mips/tcg/sysemu/tlb_helper.c
index 3836137750..e98bb95951 100644
--- a/target/mips/tcg/sysemu/tlb_helper.c
+++ b/target/mips/tcg/sysemu/tlb_helper.c
@@ -601,7 +601,7 @@ static bool get_pte(CPUMIPSState *env, uint64_t vaddr,
MemOp op,
return false;
}
- oi = make_memop_idx(op | MO_TE, ptw_mmu_idx);
+ oi = make_memop_idx(op | mo_endian_env(env), ptw_mmu_idx);
if (op == MO_64) {
*pte = cpu_ldq_mmu(env, vaddr, oi, 0);
} else {
--
2.45.2
- [PATCH 00/12] target/mips: Remove target-specific endianness knowledge, Philippe Mathieu-Daudé, 2024/09/30
- [PATCH 01/12] target/mips: Declare cpu_is_bigendian_env() in 'internal.h', Philippe Mathieu-Daudé, 2024/09/30
- [PATCH 02/12] target/mips: Introduce mo_endian_env() helper, Philippe Mathieu-Daudé, 2024/09/30
- [PATCH 03/12] target/mips: Replace MO_TE by mo_endian_env() in get_pte(),
Philippe Mathieu-Daudé <=
- [PATCH 05/12] target/mips: Introduce mo_endian() helper, Philippe Mathieu-Daudé, 2024/09/30
- [PATCH 04/12] target/mips: Convert mips16e decr_and_load/store() macros to functions, Philippe Mathieu-Daudé, 2024/09/30
- [PATCH 06/12] target/mips: Explode MO_TExx -> MO_TE | MO_xx, Philippe Mathieu-Daudé, 2024/09/30
- [PATCH 07/12] target/mips: Replace MO_TE by mo_endian(), Philippe Mathieu-Daudé, 2024/09/30
- [PATCH 08/12] target/mips: Expose MIPSCPU::is_big_endian property, Philippe Mathieu-Daudé, 2024/09/30
- [PATCH 09/12] hw/mips/cps: Set the vCPU 'cpu-big-endian' property, Philippe Mathieu-Daudé, 2024/09/30
- [PATCH 10/12] hw/mips: Have mips_cpu_create_with_clock() take an endianness argument, Philippe Mathieu-Daudé, 2024/09/30
- [PATCH 11/12] target/mips: Remove target-specific code in mips_cpu_reset_hold(), Philippe Mathieu-Daudé, 2024/09/30
- [PATCH 12/12] hw/mips/malta: Remove TARGET_BIG_ENDIAN #ifdef'ry, Philippe Mathieu-Daudé, 2024/09/30
- Re: [PATCH 00/12] target/mips: Remove target-specific endianness knowledge, Jiaxun Yang, 2024/09/30