]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/loongarch: Use MMUAccessType in loongarch_map_tlb_entry()
authorBibo Mao <maobibo@loongson.cn>
Tue, 29 Jul 2025 03:38:35 +0000 (11:38 +0800)
committerBibo Mao <maobibo@loongson.cn>
Fri, 29 Aug 2025 02:05:02 +0000 (10:05 +0800)
Enum type MMUAccessType is used in function loongarch_map_tlb_entry()
rather than int type, and keep consistent with its caller function.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
target/loongarch/tcg/tlb_helper.c

index 3d09f180208e140f2329d69cb4f664158341d93c..915b1aadb5be25638e22940973688a6d3fe9cb46 100644 (file)
@@ -650,7 +650,7 @@ void helper_ldpte(CPULoongArchState *env, target_ulong base, target_ulong odd,
 
 static TLBRet loongarch_map_tlb_entry(CPULoongArchState *env, hwaddr *physical,
                                       int *prot, vaddr address,
-                                      int access_type, int index,
+                                      MMUAccessType access_type, int index,
                                       int mmu_idx)
 {
     LoongArchTLB *tlb = &env->tlb[index];