[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 13/24] exec: Declare tlb_reset_dirty*() in 'exec/cputlb.h'
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 13/24] exec: Declare tlb_reset_dirty*() in 'exec/cputlb.h' |
Date: |
Thu, 14 Nov 2024 02:12:58 +0100 |
Move CPU TLB related methods to "exec/cputlb.h".
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
include/exec/cputlb.h | 7 +++++++
include/exec/exec-all.h | 3 ---
include/exec/ram_addr.h | 1 +
system/physmem.c | 1 +
4 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/include/exec/cputlb.h b/include/exec/cputlb.h
index ef18642a32..6cac7d530f 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 2e4c4cc4b4..2c06e54387 100644
--- a/include/exec/exec-all.h
+++ b/include/exec/exec-all.h
@@ -589,9 +589,6 @@ static inline void mmap_lock(void) {}
static inline void mmap_unlock(void) {}
#define WITH_MMAP_LOCK_GUARD()
-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 891c44cf2d..b6d5551549 100644
--- a/include/exec/ram_addr.h
+++ b/include/exec/ram_addr.h
@@ -23,6 +23,7 @@
#include "cpu.h"
#include "sysemu/xen.h"
#include "sysemu/tcg.h"
+#include "exec/cputlb.h"
#include "exec/ramlist.h"
#include "exec/ramblock.h"
#include "exec/exec-all.h"
diff --git a/system/physmem.c b/system/physmem.c
index dc1db3a384..3f937a5e58 100644
--- a/system/physmem.c
+++ b/system/physmem.c
@@ -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 "hw/qdev-core.h"
--
2.45.2
- [PATCH 12/24] accel/tcg: Have tlb_vaddr_to_host() use vaddr type, (continued)
- [PATCH 12/24] accel/tcg: Have tlb_vaddr_to_host() use vaddr type, Philippe Mathieu-Daudé, 2024/11/13
- [PATCH 14/24] exec: Declare tlb_init/destroy() in 'exec/cputlb.h', Philippe Mathieu-Daudé, 2024/11/13
- [PATCH 15/24] exec: Declare tlb_set_page_full() in 'exec/cputlb.h', Philippe Mathieu-Daudé, 2024/11/13
- [PATCH 13/24] exec: Declare tlb_reset_dirty*() in 'exec/cputlb.h',
Philippe Mathieu-Daudé <=
- [PATCH 16/24] exec: Declare tlb_set_page_with_attrs() in 'exec/cputlb.h', Philippe Mathieu-Daudé, 2024/11/13
- [PATCH 17/24] exec: Declare tlb_set_page() in 'exec/cputlb.h', Philippe Mathieu-Daudé, 2024/11/13
- [PATCH 19/24] exec: Declare tlb_hit*() in 'exec/cputlb.h', Philippe Mathieu-Daudé, 2024/11/13