Skip to content

Commit f79e808

Browse files
committed
target/hexagon: Implement cpu_mmu_index
The function is trivial for user-only, but still must be present. Reviewed-by: Taylor Simpson <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Signed-off-by: Richard Henderson <[email protected]>
1 parent 35c65de commit f79e808

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

target/hexagon/cpu.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,15 @@ static inline void cpu_get_tb_cpu_state(CPUHexagonState *env, target_ulong *pc,
141141
#endif
142142
}
143143

144+
static inline int cpu_mmu_index(CPUHexagonState *env, bool ifetch)
145+
{
146+
#ifdef CONFIG_USER_ONLY
147+
return MMU_USER_IDX;
148+
#else
149+
#error System mode not supported on Hexagon yet
150+
#endif
151+
}
152+
144153
typedef struct CPUHexagonState CPUArchState;
145154
typedef HexagonCPU ArchCPU;
146155

0 commit comments

Comments
 (0)