master
h 23 lines 792 Bytes
Raw
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 #include "cpu-mmu.h"
11
12 extern const TCGCPUOps loongarch_tcg_ops;
13 void loongarch_csr_translate_init(void);
14
15 bool loongarch_cpu_tlb_fill(CPUState *cs, vaddr address, int size,
16 MMUAccessType access_type, int mmu_idx,
17 bool probe, uintptr_t retaddr);
18
19 TLBRet loongarch_get_addr_from_tlb(CPULoongArchState *env,
20 MMUContext *context,
21 MMUAccessType access_type, int mmu_idx);
22
23 #endif /* TARGET_LOONGARCH_TCG_LOONGARCH_H */