> -----Original Message----- > From: Richard Henderson <richard.hender...@linaro.org> > Sent: Wednesday, July 28, 2021 6:47 PM > To: qemu-devel@nongnu.org > Cc: Taylor Simpson <tsimp...@quicinc.com> > Subject: [PATCH for-6.2 31/43] target/hexagon: Implement cpu_mmu_index > > The function is trivial for user-only, but still must be present. > > Cc: Taylor Simpson <tsimp...@quicinc.com> > Signed-off-by: Richard Henderson <richard.hender...@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 } > + Reviewed-by: Taylor Simpson <tsimp...@quicinc.com>
- [PATCH for-6.2 41/43] tcg: Add helper_unaligned_mm... Richard Henderson
- [PATCH for-6.2 42/43] tcg/i386: Support raising si... Richard Henderson
- [PATCH for-6.2 43/43] tests/tcg/multiarch: Add sig... Richard Henderson
- [PATCH for-6.2 20/43] tcg: Rename TCGMemOpIdx to M... Richard Henderson
- Re: [PATCH for-6.2 20/43] tcg: Rename TCGMemO... Philippe Mathieu-Daudé
- [PATCH for-6.2 22/43] trace/mem: Pass MemOpIdx to ... Richard Henderson
- [PATCH for-6.2 25/43] plugins: Reorg arguments to ... Richard Henderson
- [PATCH for-6.2 26/43] trace: Split guest_mem_befor... Richard Henderson
- [PATCH for-6.2 28/43] target/i386: Use MO_128 for ... Richard Henderson
- [PATCH for-6.2 31/43] target/hexagon: Implement cp... Richard Henderson
- RE: [PATCH for-6.2 31/43] target/hexagon: Imp... Taylor Simpson
- Re: [PATCH for-6.2 31/43] target/hexagon: Imp... Philippe Mathieu-Daudé
- [PATCH for-6.2 36/43] target/s390x: Use cpu_*_mmu ... Richard Henderson
- Re: [PATCH for-6.2 36/43] target/s390x: Use c... Philippe Mathieu-Daudé
- [PATCH for-6.2 35/43] target/mips: Use 8-byte memo... Richard Henderson
- [PATCH for-6.2 39/43] tcg: Move helper_*_mmu decls... Richard Henderson
- Re: [PATCH for-6.2 39/43] tcg: Move helper_*_... Philippe Mathieu-Daudé
- [PATCH for-6.2 40/43] linux-user/alpha: Remove TAR... Richard Henderson
- Re: [PATCH for-6.2 00/43] Unaligned accesses for u... Philippe Mathieu-Daudé
- Re: [PATCH for-6.2 00/43] Unaligned accesses ... Claudio Fontana
- Re: [PATCH for-6.2 00/43] Unaligned accesses for u... Peter Maydell