diff options
author | Bibo Mao <maobibo@loongson.cn> | 2025-07-29 11:38:35 +0800 |
---|---|---|
committer | Bibo Mao <maobibo@loongson.cn> | 2025-08-29 10:05:02 +0800 |
commit | e6c855f44ad63b5e94bc3d27adca12c24ce7953d (patch) | |
tree | 0b330f546468db4f5ec6e42224dffe67e7e7ee63 | |
parent | 82cd0be29b603ef620f45053a406bdb4a3221563 (diff) | |
download | qemu-e6c855f44ad63b5e94bc3d27adca12c24ce7953d.zip qemu-e6c855f44ad63b5e94bc3d27adca12c24ce7953d.tar.gz qemu-e6c855f44ad63b5e94bc3d27adca12c24ce7953d.tar.bz2 |
target/loongarch: Use MMUAccessType in loongarch_map_tlb_entry()
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>
-rw-r--r-- | target/loongarch/tcg/tlb_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/loongarch/tcg/tlb_helper.c b/target/loongarch/tcg/tlb_helper.c index 3d09f18..915b1aa 100644 --- a/target/loongarch/tcg/tlb_helper.c +++ b/target/loongarch/tcg/tlb_helper.c @@ -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]; |