]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
exec: Declare tlb_reset_dirty*() in 'exec/cputlb.h'
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 14 Nov 2024 01:12:58 +0000 (02:12 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 8 Mar 2025 15:56:14 +0000 (07:56 -0800)
Move CPU TLB related methods to "exec/cputlb.h".

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Message-ID: <20241114011310.3615-14-philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
include/exec/cputlb.h
include/exec/exec-all.h
include/exec/ram_addr.h
system/physmem.c

index ef18642a329464fdc759e7bdf1662d44131fc67d..6cac7d530fce79f6f1b180fbc66726e1e61c977d 100644 (file)
@@ -32,4 +32,11 @@ void tlb_unprotect_code(ram_addr_t ram_addr);
 
 #endif /* CONFIG_TCG */
 
+#ifndef CONFIG_USER_ONLY
+
+void tlb_reset_dirty(CPUState *cpu, ram_addr_t start1, ram_addr_t length);
+void tlb_reset_dirty_range_all(ram_addr_t start, ram_addr_t length);
+
+#endif
+
 #endif
index 8eb0df48f9457321f214de52813eabd74bce29ff..f24256fb5e7fc9d0f607b314a2e0c9e909e4e73b 100644 (file)
@@ -486,9 +486,6 @@ static inline tb_page_addr_t get_page_addr_code(CPUArchState *env,
 
 #if !defined(CONFIG_USER_ONLY)
 
-void tlb_reset_dirty(CPUState *cpu, ram_addr_t start1, ram_addr_t length);
-void tlb_reset_dirty_range_all(ram_addr_t start, ram_addr_t length);
-
 MemoryRegionSection *
 address_space_translate_for_iotlb(CPUState *cpu, int asidx, hwaddr addr,
                                   hwaddr *xlat, hwaddr *plen,
index 94bb3ccbe42b83e76055e32e5023668f73cbc75b..3d8df4edf15cd916d477250444ac6833c76f0286 100644 (file)
@@ -23,6 +23,7 @@
 #include "cpu.h"
 #include "system/xen.h"
 #include "system/tcg.h"
+#include "exec/cputlb.h"
 #include "exec/ramlist.h"
 #include "exec/ramblock.h"
 #include "exec/exec-all.h"
index 8c1736f84ee758a691d4e205235836d56d2ddbc2..a6af555f4b7aefacf2c7fff44a6bfecb02670542 100644 (file)
@@ -32,6 +32,7 @@
 #endif /* CONFIG_TCG */
 
 #include "exec/exec-all.h"
+#include "exec/cputlb.h"
 #include "exec/page-protection.h"
 #include "exec/target_page.h"
 #include "exec/translation-block.h"