[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 21/48] target/hexagon: Implement cpu_mmu_index
From: |
Richard Henderson |
Subject: |
[PATCH v4 21/48] target/hexagon: Implement cpu_mmu_index |
Date: |
Tue, 12 Oct 2021 19:45:40 -0700 |
The function is trivial for user-only, but still must be present.
Reviewed-by: Taylor Simpson <tsimpson@quicinc.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
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 f7d043865b..f90c187888 100644
--- a/target/hexagon/cpu.h
+++ b/target/hexagon/cpu.h
@@ -141,6 +141,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
- [PATCH v4 13/48] target/sparc: Remove DEBUG_UNALIGNED, (continued)
- [PATCH v4 13/48] target/sparc: Remove DEBUG_UNALIGNED, Richard Henderson, 2021/10/12
- [PATCH v4 14/48] target/sparc: Split out build_sfsr, Richard Henderson, 2021/10/12
- [PATCH v4 15/48] target/sparc: Set fault address in sparc_cpu_do_unaligned_access, Richard Henderson, 2021/10/12
- [PATCH v4 16/48] accel/tcg: Report unaligned atomics for user-only, Richard Henderson, 2021/10/12
- [PATCH v4 18/48] target/i386: Use MO_128 for 16 byte atomics, Richard Henderson, 2021/10/12
- [PATCH v4 17/48] target/arm: Use MO_128 for 16 byte atomics, Richard Henderson, 2021/10/12
- [PATCH v4 23/48] accel/tcg: Move cpu_atomic decls to exec/cpu_ldst.h, Richard Henderson, 2021/10/12
- [PATCH v4 24/48] target/mips: Use cpu_*_data_ra for msa load/store, Richard Henderson, 2021/10/12
- [PATCH v4 28/48] target/arm: Use cpu_*_mmu instead of helper_*_mmu, Richard Henderson, 2021/10/12
- [PATCH v4 19/48] target/ppc: Use MO_128 for 16 byte atomics, Richard Henderson, 2021/10/12
- [PATCH v4 21/48] target/hexagon: Implement cpu_mmu_index,
Richard Henderson <=
- [PATCH v4 20/48] target/s390x: Use MO_128 for 16 byte atomics, Richard Henderson, 2021/10/12
- [PATCH v4 31/48] linux-user: Split out do_prctl and subroutines, Richard Henderson, 2021/10/12
- [PATCH v4 37/48] target/alpha: Implement prctl_unalign_sigbus, Richard Henderson, 2021/10/12
- [PATCH v4 26/48] target/s390x: Use cpu_*_mmu instead of helper_*_mmu, Richard Henderson, 2021/10/12
- [PATCH v4 29/48] tcg: Move helper_*_mmu decls to tcg/tcg-ldst.h, Richard Henderson, 2021/10/12
- [PATCH v4 34/48] linux-user: Add code for PR_GET/SET_UNALIGN, Richard Henderson, 2021/10/12
- [PATCH v4 22/48] accel/tcg: Add cpu_{ld,st}*_mmu interfaces, Richard Henderson, 2021/10/12
- [PATCH v4 35/48] target/alpha: Reorg fp memory operations, Richard Henderson, 2021/10/12
- [PATCH v4 36/48] target/alpha: Reorg integer memory operations, Richard Henderson, 2021/10/12
- [PATCH v4 25/48] target/mips: Use 8-byte memory ops for msa load/store, Richard Henderson, 2021/10/12