]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
exec: Declare tlb_set_page() in 'exec/cputlb.h'
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 14 Nov 2024 01:13:02 +0000 (02:13 +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>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-ID: <20241114011310.3615-18-philmd@linaro.org>

15 files changed:
include/exec/cputlb.h
include/exec/exec-all.h
target/alpha/helper.c
target/avr/helper.c
target/loongarch/tcg/tlb_helper.c
target/m68k/helper.c
target/mips/tcg/system/tlb_helper.c
target/openrisc/mmu.c
target/ppc/mmu_helper.c
target/riscv/cpu_helper.c
target/rx/cpu.c
target/s390x/tcg/excp_helper.c
target/sh4/helper.c
target/tricore/helper.c
target/xtensa/helper.c

index 56dd05a1484f68db82e5240150e79608e43b0447..cdfaf17403712cda72708bc92f262057ba5c7c6c 100644 (file)
@@ -90,4 +90,15 @@ void tlb_set_page_with_attrs(CPUState *cpu, vaddr addr,
                              hwaddr paddr, MemTxAttrs attrs,
                              int prot, int mmu_idx, vaddr size);
 
+/**
+ * tlb_set_page:
+ *
+ * This function is equivalent to calling tlb_set_page_with_attrs()
+ * with an @attrs argument of MEMTXATTRS_UNSPECIFIED. It's provided
+ * as a convenience for CPUs which don't use memory transaction attributes.
+ */
+void tlb_set_page(CPUState *cpu, vaddr addr,
+                  hwaddr paddr, int prot,
+                  int mmu_idx, vaddr size);
+
 #endif
index 62d6300752e9db3b01fb62f53ddd1e0f6959e3a4..a3aa8448d0aff205d382b8475a62b68e2247305e 100644 (file)
@@ -156,15 +156,6 @@ void tlb_flush_range_by_mmuidx_all_cpus_synced(CPUState *cpu,
                                                uint16_t idxmap,
                                                unsigned bits);
 
-/* tlb_set_page:
- *
- * This function is equivalent to calling tlb_set_page_with_attrs()
- * with an @attrs argument of MEMTXATTRS_UNSPECIFIED. It's provided
- * as a convenience for CPUs which don't use memory transaction attributes.
- */
-void tlb_set_page(CPUState *cpu, vaddr addr,
-                  hwaddr paddr, int prot,
-                  int mmu_idx, vaddr size);
 #else
 static inline void tlb_flush_page(CPUState *cpu, vaddr addr)
 {
index 2f1000c99fa9c24fdbb12c712af941cf7e244266..57cefcba144833bec769ebbe9e9cc94789deac79 100644 (file)
@@ -20,7 +20,7 @@
 #include "qemu/osdep.h"
 #include "qemu/log.h"
 #include "cpu.h"
-#include "exec/exec-all.h"
+#include "exec/cputlb.h"
 #include "exec/page-protection.h"
 #include "fpu/softfloat-types.h"
 #include "exec/helper-proto.h"
index 9ea6870e44dcadf1c9f1beb25711acea29ad7e96..3412312ad5e99372b1c833be14702a4d11a45056 100644 (file)
@@ -23,7 +23,7 @@
 #include "qemu/error-report.h"
 #include "cpu.h"
 #include "accel/tcg/cpu-ops.h"
-#include "exec/exec-all.h"
+#include "exec/cputlb.h"
 #include "exec/page-protection.h"
 #include "exec/cpu_ldst.h"
 #include "exec/address-spaces.h"
index a323606e5a9e3d5463d4b88988a3dad76e8865a0..f6b63c7224e4c51f28ca8ba58c0b937fd12368f9 100644 (file)
@@ -12,6 +12,7 @@
 #include "cpu.h"
 #include "internals.h"
 #include "exec/helper-proto.h"
+#include "exec/cputlb.h"
 #include "exec/exec-all.h"
 #include "exec/page-protection.h"
 #include "exec/cpu_ldst.h"
index beefeb7069c91b8ea67de77057704006235534b4..0bf574830f9e72ac6f1caeaf11e92936632f4c6d 100644 (file)
@@ -20,6 +20,7 @@
 
 #include "qemu/osdep.h"
 #include "cpu.h"
+#include "exec/cputlb.h"
 #include "exec/exec-all.h"
 #include "exec/page-protection.h"
 #include "exec/gdbstub.h"
index e98bb9595178e528cdb3ee503b24b06bde3b0181..ca4d6b27bc94e8b09bccdf9a9cf120f230bfa763 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "cpu.h"
 #include "internal.h"
+#include "exec/cputlb.h"
 #include "exec/exec-all.h"
 #include "exec/page-protection.h"
 #include "exec/cpu_ldst.h"
index c632d5230b29ef464da4db2cbbf8f4740070b304..47ac783c5251fa4e95f69be7660f2c56dc6143e7 100644 (file)
@@ -21,7 +21,7 @@
 #include "qemu/osdep.h"
 #include "qemu/log.h"
 #include "cpu.h"
-#include "exec/exec-all.h"
+#include "exec/cputlb.h"
 #include "exec/page-protection.h"
 #include "gdbstub/helpers.h"
 #include "qemu/host-utils.h"
index a802bc9c62b0a49183d6c111e018d3899cdb3e8c..ad9ba8294cc61b1e69f6bf2c1b97915e7f0a0d2a 100644 (file)
@@ -24,6 +24,7 @@
 #include "kvm_ppc.h"
 #include "mmu-hash64.h"
 #include "mmu-hash32.h"
+#include "exec/cputlb.h"
 #include "exec/exec-all.h"
 #include "exec/page-protection.h"
 #include "exec/log.h"
index 34092f372df67635c9f081471923837c7c126195..6c4391d96b8402b4fadd57c201041fa6d95c66fc 100644 (file)
@@ -23,6 +23,7 @@
 #include "cpu.h"
 #include "internals.h"
 #include "pmu.h"
+#include "exec/cputlb.h"
 #include "exec/exec-all.h"
 #include "exec/page-protection.h"
 #include "instmap.h"
index 1c40c8977e76e40c1a643bf2a8a59aff5d11bcab..f01e069a907bd7c0296f24660be0bcd1b6457862 100644 (file)
@@ -21,7 +21,7 @@
 #include "qapi/error.h"
 #include "cpu.h"
 #include "migration/vmstate.h"
-#include "exec/exec-all.h"
+#include "exec/cputlb.h"
 #include "exec/page-protection.h"
 #include "exec/translation-block.h"
 #include "hw/loader.h"
index 4c0b692c9e850182b74a188c1cd24279099b1038..f969850f8716a65109ee419863c5f27619e6cb9d 100644 (file)
@@ -22,6 +22,7 @@
 #include "qemu/log.h"
 #include "cpu.h"
 #include "exec/helper-proto.h"
+#include "exec/cputlb.h"
 #include "exec/exec-all.h"
 #include "s390x-internal.h"
 #include "tcg_s390x.h"
index b8774e046e4796289b41e6155bd7558425b725ce..7567e6c8b6691aa301eff37f3207a4f8ce3a4cfe 100644 (file)
@@ -20,6 +20,7 @@
 #include "qemu/osdep.h"
 
 #include "cpu.h"
+#include "exec/cputlb.h"
 #include "exec/exec-all.h"
 #include "exec/page-protection.h"
 #include "exec/log.h"
index 9898752eb00eb63df513cde6d7645a0484fc58c0..a64412e6bd898c12e781d65aa1a74b06b20983e5 100644 (file)
@@ -19,7 +19,7 @@
 #include "qemu/log.h"
 #include "hw/registerfields.h"
 #include "cpu.h"
-#include "exec/exec-all.h"
+#include "exec/cputlb.h"
 #include "exec/page-protection.h"
 #include "fpu/softfloat-helpers.h"
 #include "qemu/qemu-print.h"
index f64699b116df155944b182ccf9009868c36fafed..4824b97e371e439c43a237c062dc418b12d98be5 100644 (file)
@@ -28,7 +28,7 @@
 #include "qemu/osdep.h"
 #include "qemu/log.h"
 #include "cpu.h"
-#include "exec/exec-all.h"
+#include "exec/cputlb.h"
 #include "gdbstub/helpers.h"
 #include "exec/helper-proto.h"
 #include "qemu/error-report.h"