xref: /qemu/target/loongarch/tcg/tcg_loongarch.h (revision d9bf9713239945a5d4187593599de49da3351416)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * QEMU LoongArch TCG interface
4  *
5  * Copyright (c) 2025 Loongson Technology Corporation Limited
6  */
7 #ifndef TARGET_LOONGARCH_TCG_LOONGARCH_H
8 #define TARGET_LOONGARCH_TCG_LOONGARCH_H
9 #include "cpu.h"
10 
11 void loongarch_csr_translate_init(void);
12 
13 bool loongarch_cpu_tlb_fill(CPUState *cs, vaddr address, int size,
14                             MMUAccessType access_type, int mmu_idx,
15                             bool probe, uintptr_t retaddr);
16 
17 int loongarch_get_addr_from_tlb(CPULoongArchState *env, hwaddr *physical,
18                                 int *prot, target_ulong address,
19                                 MMUAccessType access_type, int mmu_idx);
20 
21 #endif  /* TARGET_LOONGARCH_TCG_LOONGARCH_H */
22