[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH for-6.2 31/43] target/hexagon: Implement cpu_mmu_index
From: |
Richard Henderson |
Subject: |
[PATCH for-6.2 31/43] target/hexagon: Implement cpu_mmu_index |
Date: |
Wed, 28 Jul 2021 14:46:35 -1000 |
The function is trivial for user-only, but still must be present.
Cc: Taylor Simpson <tsimpson@quicinc.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/hexagon/cpu.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/target/hexagon/cpu.h b/target/hexagon/cpu.h
index 2855dd3881..bde538fd5c 100644
--- a/target/hexagon/cpu.h
+++ b/target/hexagon/cpu.h
@@ -144,6 +144,15 @@ static inline void cpu_get_tb_cpu_state(CPUHexagonState
*env, target_ulong *pc,
#endif
}
+static inline int cpu_mmu_index(CPUHexagonState *env, bool ifetch)
+{
+#ifdef CONFIG_USER_ONLY
+ return MMU_USER_IDX;
+#else
+#error System mode not supported on Hexagon yet
+#endif
+}
+
typedef struct CPUHexagonState CPUArchState;
typedef HexagonCPU ArchCPU;
--
2.25.1
- Re: [PATCH for-6.1? 23/43] accel/tcg: Remove double bswap for helper_atomic_sto_*_mmu, (continued)
- [PATCH for-6.2 28/43] target/i386: Use MO_128 for 16 byte atomics, Richard Henderson, 2021/07/28
- [PATCH for-6.2 29/43] target/ppc: Use MO_128 for 16 byte atomics, Richard Henderson, 2021/07/28
- [PATCH for-6.2 26/43] trace: Split guest_mem_before, Richard Henderson, 2021/07/28
- [PATCH for-6.2 27/43] target/arm: Use MO_128 for 16 byte atomics, Richard Henderson, 2021/07/28
- [PATCH for-6.2 30/43] target/s390x: Use MO_128 for 16 byte atomics, Richard Henderson, 2021/07/28
- [PATCH for-6.2 31/43] target/hexagon: Implement cpu_mmu_index,
Richard Henderson <=
- [PATCH for-6.2 33/43] accel/tcg: Move cpu_atomic decls to exec/cpu_ldst.h, Richard Henderson, 2021/07/28
- [PATCH for-6.2 32/43] accel/tcg: Add cpu_{ld,st}*_mmu interfaces, Richard Henderson, 2021/07/28
- [PATCH for-6.2 34/43] target/mips: Use cpu_*_data_ra for msa load/store, Richard Henderson, 2021/07/28
- [PATCH for-6.2 36/43] target/s390x: Use cpu_*_mmu instead of helper_*_mmu, Richard Henderson, 2021/07/28
- [PATCH for-6.2 38/43] target/arm: Use cpu_*_mmu instead of helper_*_mmu, Richard Henderson, 2021/07/28