diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-11-14 02:12:58 +0100 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2025-03-08 07:56:14 -0800 |
commit | e7d269adb260417149e4bb85cc1882fbb11074fd (patch) | |
tree | 334bbca845bdecc75d2ece5b2d844f578b40eac7 /include/exec | |
parent | 5469933810b00589d5db36408dd4e0236eec95ac (diff) | |
download | qemu-e7d269adb260417149e4bb85cc1882fbb11074fd.zip qemu-e7d269adb260417149e4bb85cc1882fbb11074fd.tar.gz qemu-e7d269adb260417149e4bb85cc1882fbb11074fd.tar.bz2 |
exec: Declare tlb_reset_dirty*() in 'exec/cputlb.h'
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>
Diffstat (limited to 'include/exec')
-rw-r--r-- | include/exec/cputlb.h | 7 | ||||
-rw-r--r-- | include/exec/exec-all.h | 3 | ||||
-rw-r--r-- | include/exec/ram_addr.h | 1 |
3 files changed, 8 insertions, 3 deletions
diff --git a/include/exec/cputlb.h b/include/exec/cputlb.h index ef18642..6cac7d5 100644 --- a/include/exec/cputlb.h +++ b/include/exec/cputlb.h @@ -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 diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h index 8eb0df4..f24256f 100644 --- a/include/exec/exec-all.h +++ b/include/exec/exec-all.h @@ -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, diff --git a/include/exec/ram_addr.h b/include/exec/ram_addr.h index 94bb3cc..3d8df4e 100644 --- a/include/exec/ram_addr.h +++ b/include/exec/ram_addr.h @@ -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" |