mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
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>
This commit is contained in:
parent
35c65de029
commit
f79e80899d
1 changed files with 9 additions and 0 deletions
|
@ -141,6 +141,15 @@ static inline void cpu_get_tb_cpu_state(CPUHexagonState *env, target_ulong *pc,
|
||||||
#endif
|
#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 struct CPUHexagonState CPUArchState;
|
||||||
typedef HexagonCPU ArchCPU;
|
typedef HexagonCPU ArchCPU;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue