diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2021-07-27 06:50:38 -1000 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2021-10-13 07:59:23 -0700 |
commit | f79e80899dbcd306ae2e8a43bc5e139b051f30f4 (patch) | |
tree | e363c4d09e4595cea6cb18e6d083afb299553bc6 | |
parent | 35c65de02998d23a26964c61b8c2e3b4235dcceb (diff) | |
download | qemu-f79e80899dbcd306ae2e8a43bc5e139b051f30f4.zip qemu-f79e80899dbcd306ae2e8a43bc5e139b051f30f4.tar.gz qemu-f79e80899dbcd306ae2e8a43bc5e139b051f30f4.tar.bz2 |
target/hexagon: Implement cpu_mmu_index
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>
-rw-r--r-- | target/hexagon/cpu.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/target/hexagon/cpu.h b/target/hexagon/cpu.h index f7d0438..f90c187 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; |