On 4/15/22 02:40, Xiaojuan Yang wrote:
This includes:
- TLBSRCH
- TLBRD
- TLBWR
- TLBFILL
- TLBCLR
- TLBFLUSH
- INVTLB
Signed-off-by: Xiaojuan Yang <yangxiaoj...@loongson.cn>
Signed-off-by: Song Gao <gaos...@loongson.cn>
---
target/loongarch/disas.c | 18 +
target/loongarch/helper.h | 13 +
.../insn_trans/trans_privileged.c.inc | 101 +++++
target/loongarch/insns.decode | 11 +
target/loongarch/tlb_helper.c | 358 ++++++++++++++++++
5 files changed, 501 insertions(+)
Reviewed-by: Richard Henderson <richard.hender...@linaro.org>
+static void loongarch_invalidate_tlb_entry(CPULoongArchState *env,
+ int index)
+static void loongarch_invalidate_tlb(CPULoongArchState *env, int index)
+static void loongarch_fill_tlb_entry(CPULoongArchState *env, int index)
+static uint32_t cpu_loongarch_get_random_loongarch_tlb(uint32_t low,
+ uint32_t high)
But as a comment, these static function names could be shortened by dropping the "cpu_"
and "loongarch_" prefixes and infixes. Particularly that last one, with two loongarch.
r~