]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/loongarch: Move definition of TCG specified function to tcg directory
authorBibo Mao <maobibo@loongson.cn>
Wed, 23 Apr 2025 08:04:17 +0000 (16:04 +0800)
committerSong Gao <gaosong@loongson.cn>
Thu, 24 Apr 2025 02:09:38 +0000 (10:09 +0800)
Function loongarch_cpu_tlb_fill() only works in TCG mode, move its
definition from header file internals.h to file tcg/tcg_loongarch.h

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20250423080417.3739809-10-maobibo@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
target/loongarch/cpu.c
target/loongarch/internals.h
target/loongarch/tcg/tcg_loongarch.h

index ea1665e2705312ea623dcd82cb6e4ac027a06178..bf3d592574e4759525aac962a176bd76abacf4ba 100644 (file)
@@ -32,6 +32,7 @@
 #include "exec/cpu_ldst.h"
 #include "tcg/tcg.h"
 #endif
+#include "tcg/tcg_loongarch.h"
 
 const char * const regnames[32] = {
     "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7",
index 3a079feb1d6e08f63debbe8bf14d38700c178275..a7384b0d31515181d3f01fbf7212df1447292a65 100644 (file)
@@ -61,11 +61,6 @@ void get_dir_base_width(CPULoongArchState *env, uint64_t *dir_base,
                                uint64_t *dir_width, target_ulong level);
 hwaddr loongarch_cpu_get_phys_page_debug(CPUState *cpu, vaddr addr);
 
-#ifdef CONFIG_TCG
-bool loongarch_cpu_tlb_fill(CPUState *cs, vaddr address, int size,
-                            MMUAccessType access_type, int mmu_idx,
-                            bool probe, uintptr_t retaddr);
-#endif
 #endif /* !CONFIG_USER_ONLY */
 
 uint64_t read_fcc(CPULoongArchState *env);
index b29427d981d8a66a669983a28a5fbab348c74f34..fd4e1160229ede9d493e9ebc5f2a0f0ac63d48b8 100644 (file)
 
 void loongarch_csr_translate_init(void);
 
+bool loongarch_cpu_tlb_fill(CPUState *cs, vaddr address, int size,
+                            MMUAccessType access_type, int mmu_idx,
+                            bool probe, uintptr_t retaddr);
+
 int loongarch_get_addr_from_tlb(CPULoongArchState *env, hwaddr *physical,
                                 int *prot, target_ulong address,
                                 MMUAccessType access_type, int mmu_idx);