]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
exec/cpu: Extract page-protection definitions to page-protection.h
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 6 Dec 2023 19:27:32 +0000 (20:27 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 6 May 2024 09:17:15 +0000 (11:17 +0200)
Extract page-protection definitions from "exec/cpu-all.h"
to "exec/page-protection.h".

The list of files requiring the new header was generated
using:

$ git grep -wE \
  'PAGE_(READ|WRITE|EXEC|RWX|VALID|ANON|RESERVED|TARGET_.|PASSTHROUGH)'

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Acked-by: Nicholas Piggin <npiggin@gmail.com>
Acked-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20240427155714.53669-3-philmd@linaro.org>

59 files changed:
MAINTAINERS
accel/tcg/cputlb.c
accel/tcg/tb-maint.c
accel/tcg/user-exec.c
bsd-user/bsd-mem.h
bsd-user/mmap.c
bsd-user/qemu.h
bsd-user/signal.c
cpu-target.c
hw/ppc/ppc440_bamboo.c
hw/ppc/sam460ex.c
hw/ppc/virtex_ml507.c
include/exec/cpu-all.h
include/exec/cpu-common.h
include/exec/page-protection.h [new file with mode: 0644]
include/semihosting/uaccess.h
linux-user/arm/cpu_loop.c
linux-user/elfload.c
linux-user/mmap.c
linux-user/signal.c
linux-user/syscall.c
system/physmem.c
target/alpha/helper.c
target/arm/cpu.h
target/arm/ptw.c
target/arm/tcg/m_helper.c
target/arm/tcg/mte_helper.c
target/arm/tcg/sve_helper.c
target/avr/helper.c
target/cris/mmu.c
target/hppa/mem_helper.c
target/hppa/translate.c
target/i386/tcg/sysemu/excp_helper.c
target/loongarch/tcg/tlb_helper.c
target/m68k/helper.c
target/microblaze/helper.c
target/microblaze/mmu.c
target/mips/sysemu/physaddr.c
target/mips/tcg/sysemu/tlb_helper.c
target/openrisc/mmu.c
target/ppc/internal.h
target/ppc/mmu-hash32.c
target/ppc/mmu-hash64.c
target/ppc/mmu-radix64.c
target/ppc/mmu-radix64.h
target/ppc/mmu_common.c
target/ppc/mmu_helper.c
target/riscv/cpu_helper.c
target/riscv/pmp.c
target/riscv/vector_helper.c
target/rx/cpu.c
target/s390x/mmu_helper.c
target/s390x/tcg/mem_helper.c
target/sh4/helper.c
target/sparc/ldst_helper.c
target/sparc/mmu_helper.c
target/tricore/helper.c
target/xtensa/mmu_helper.c
target/xtensa/op_helper.c

index 2f08cc528eb6d09a707d48d99765cf928fe1656d..595808fc9646c4e536619f327306bcc572f44a44 100644 (file)
@@ -167,6 +167,7 @@ F: include/exec/target_long.h
 F: include/exec/helper*.h
 F: include/exec/helper*.h.inc
 F: include/exec/helper-info.c.inc
+F: include/exec/page-protection.h
 F: include/sysemu/cpus.h
 F: include/sysemu/tcg.h
 F: include/hw/core/tcg-cpu-ops.h
index 953c437ba9c6ba20fb3b0d6ed7670c15dd633d77..cdb3e12dfb74e273a3b68f11f23d595067ee8280 100644 (file)
@@ -21,6 +21,7 @@
 #include "qemu/main-loop.h"
 #include "hw/core/tcg-cpu-ops.h"
 #include "exec/exec-all.h"
+#include "exec/page-protection.h"
 #include "exec/memory.h"
 #include "exec/cpu_ldst.h"
 #include "exec/cputlb.h"
index da39a43bd8c5db3aec0be26901e565f1540834e1..19ae6793f3990a6f56fd470f308ccd2dc801948d 100644 (file)
@@ -23,6 +23,7 @@
 #include "exec/cputlb.h"
 #include "exec/log.h"
 #include "exec/exec-all.h"
+#include "exec/page-protection.h"
 #include "exec/tb-flush.h"
 #include "exec/translate-all.h"
 #include "sysemu/tcg.h"
index a81e3cc9208f405ec9daec82fb689ba4d4a171a4..d34313a61264cc01276c8365a875a7259f27dd60 100644 (file)
@@ -25,6 +25,7 @@
 #include "qemu/rcu.h"
 #include "exec/cpu_ldst.h"
 #include "exec/translate-all.h"
+#include "exec/page-protection.h"
 #include "exec/helper-proto.h"
 #include "qemu/atomic128.h"
 #include "trace/trace-root.h"
index 21d9bab889372ff517a73cd78b19a46c9c09a6f5..eef6b222d9e8a7ebf0c2767ddb90b3d1b2b0201f 100644 (file)
@@ -56,6 +56,7 @@
 #include <fcntl.h>
 
 #include "qemu-bsd.h"
+#include "exec/page-protection.h"
 
 extern struct bsd_shm_regions bsd_shm_regions[];
 extern abi_ulong target_brk;
index c785615392198e427ddd89dc40058ebed72804d9..f3a4f1712dab29e155ec86e6de30e4bc790b3924 100644 (file)
@@ -17,6 +17,7 @@
  *  along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 #include "qemu/osdep.h"
+#include "exec/page-protection.h"
 
 #include "qemu.h"
 
index a916724de995c9e5ecac88c6afb753552e42b08f..322177de1624b8eeb5dc90de42466c6c7db3de4b 100644 (file)
@@ -34,6 +34,7 @@ extern char **environ;
 #include "target_os_signal.h"
 #include "target.h"
 #include "exec/gdbstub.h"
+#include "exec/page-protection.h"
 #include "qemu/clang-tsa.h"
 
 #include "qemu-os.h"
index b2faf1d0dd834edf7d37fd247428ceeda682d184..8b6654b91dacd5e3a059b64a136916eaae1a0834 100644 (file)
@@ -21,6 +21,7 @@
 #include "qemu/osdep.h"
 #include "qemu/log.h"
 #include "qemu.h"
+#include "exec/page-protection.h"
 #include "user/tswap-target.h"
 #include "gdbstub/user.h"
 #include "signal-common.h"
index f88649c29954d7311a338e79c6a8a8376da4444c..5af120e8aa1dadb6041baed4c3fce179df6b1c1c 100644 (file)
@@ -21,6 +21,7 @@
 #include "qapi/error.h"
 
 #include "exec/target_page.h"
+#include "exec/page-protection.h"
 #include "hw/qdev-core.h"
 #include "hw/qdev-properties.h"
 #include "qemu/error-report.h"
index e18f57efce9b67fb833f62a8d1c4f0788618ffec..73f80cf7065fd8e52b1bd2889f185167c0c3cb2d 100644 (file)
@@ -15,6 +15,7 @@
 #include "qemu/units.h"
 #include "qemu/datadir.h"
 #include "qemu/error-report.h"
+#include "exec/page-protection.h"
 #include "net/net.h"
 #include "hw/pci/pci.h"
 #include "hw/boards.h"
index d42b67789876d41d4e77751a352de416b4020d73..8dc75fb9f086bf759c8bf6ecbb444b4fe251f189 100644 (file)
@@ -21,6 +21,7 @@
 #include "kvm_ppc.h"
 #include "sysemu/device_tree.h"
 #include "sysemu/block-backend.h"
+#include "exec/page-protection.h"
 #include "hw/loader.h"
 #include "elf.h"
 #include "exec/memory.h"
index d02f330650fc403983065d5c26cbd4bbf1289934..c49da1f46f7eee289f40d21185d83c0bc3c5f48a 100644 (file)
@@ -25,6 +25,7 @@
 #include "qemu/osdep.h"
 #include "qemu/datadir.h"
 #include "qemu/units.h"
+#include "exec/page-protection.h"
 #include "cpu.h"
 #include "hw/sysbus.h"
 #include "hw/char/serial.h"
index c4dada5b4459df0fdfb0074432fabeae9cc8c366..6f09b86e7f3ecc61a884da7f7b0d7ce697eb38ea 100644 (file)
@@ -19,6 +19,7 @@
 #ifndef CPU_ALL_H
 #define CPU_ALL_H
 
+#include "exec/page-protection.h"
 #include "exec/cpu-common.h"
 #include "exec/memory.h"
 #include "exec/tswap.h"
index a4bb4e6680d514977379a490f1f5c9560cfd8ca7..78f2c381b132cb399f1a0777d8e699a6179d0f4f 100644 (file)
@@ -14,6 +14,7 @@
 #endif
 #include "hw/core/cpu.h"
 #include "tcg/debug-assert.h"
+#include "exec/page-protection.h"
 
 #define EXCP_INTERRUPT  0x10000 /* async interruption */
 #define EXCP_HLT        0x10001 /* hlt instruction reached */
@@ -208,36 +209,6 @@ G_NORETURN void cpu_loop_exit_atomic(CPUState *cpu, uintptr_t pc);
 G_NORETURN void cpu_loop_exit(CPUState *cpu);
 G_NORETURN void cpu_loop_exit_restore(CPUState *cpu, uintptr_t pc);
 
-/* same as PROT_xxx */
-#define PAGE_READ      0x0001
-#define PAGE_WRITE     0x0002
-#define PAGE_EXEC      0x0004
-#define PAGE_RWX       (PAGE_READ | PAGE_WRITE | PAGE_EXEC)
-#define PAGE_VALID     0x0008
-/*
- * Original state of the write flag (used when tracking self-modifying code)
- */
-#define PAGE_WRITE_ORG 0x0010
-/*
- * Invalidate the TLB entry immediately, helpful for s390x
- * Low-Address-Protection. Used with PAGE_WRITE in tlb_set_page_with_attrs()
- */
-#define PAGE_WRITE_INV 0x0020
-/* For use with page_set_flags: page is being replaced; target_data cleared. */
-#define PAGE_RESET     0x0040
-/* For linux-user, indicates that the page is MAP_ANON. */
-#define PAGE_ANON      0x0080
-
-/* Target-specific bits that will be used via page_get_flags().  */
-#define PAGE_TARGET_1  0x0200
-#define PAGE_TARGET_2  0x0400
-
-/*
- * For linux-user, indicates that the page is mapped with the same semantics
- * in both guest and host.
- */
-#define PAGE_PASSTHROUGH 0x0800
-
 /* accel/tcg/cpu-exec.c */
 int cpu_exec(CPUState *cpu);
 
diff --git a/include/exec/page-protection.h b/include/exec/page-protection.h
new file mode 100644 (file)
index 0000000..c43231a
--- /dev/null
@@ -0,0 +1,41 @@
+/*
+ * QEMU page protection definitions.
+ *
+ *  Copyright (c) 2003 Fabrice Bellard
+ *
+ * SPDX-License-Identifier: LGPL-2.1+
+ */
+#ifndef EXEC_PAGE_PROT_COMMON_H
+#define EXEC_PAGE_PROT_COMMON_H
+
+/* same as PROT_xxx */
+#define PAGE_READ      0x0001
+#define PAGE_WRITE     0x0002
+#define PAGE_EXEC      0x0004
+#define PAGE_RWX       (PAGE_READ | PAGE_WRITE | PAGE_EXEC)
+#define PAGE_VALID     0x0008
+/*
+ * Original state of the write flag (used when tracking self-modifying code)
+ */
+#define PAGE_WRITE_ORG 0x0010
+/*
+ * Invalidate the TLB entry immediately, helpful for s390x
+ * Low-Address-Protection. Used with PAGE_WRITE in tlb_set_page_with_attrs()
+ */
+#define PAGE_WRITE_INV 0x0020
+/* For use with page_set_flags: page is being replaced; target_data cleared. */
+#define PAGE_RESET     0x0040
+/* For linux-user, indicates that the page is MAP_ANON. */
+#define PAGE_ANON      0x0080
+
+/* Target-specific bits that will be used via page_get_flags().  */
+#define PAGE_TARGET_1  0x0200
+#define PAGE_TARGET_2  0x0400
+
+/*
+ * For linux-user, indicates that the page is mapped with the same semantics
+ * in both guest and host.
+ */
+#define PAGE_PASSTHROUGH 0x0800
+
+#endif
index dd289af8dd485c4b0cc76dd2f962890e7f053c9b..c2fa5a655de8c76e853ad9c5682f2e6f88953fff 100644 (file)
@@ -17,6 +17,7 @@
 #include "exec/cpu-common.h"
 #include "exec/cpu-defs.h"
 #include "exec/tswap.h"
+#include "exec/page-protection.h"
 
 #define get_user_u64(val, addr)                                         \
     ({ uint64_t val_ = 0;                                               \
index db1a41e27f41449d18a5fd5dcf9fa162c8aa87e4..ec665862d93e93682b5137d37f2247f68fc9fe81 100644 (file)
@@ -24,6 +24,7 @@
 #include "cpu_loop-common.h"
 #include "signal-common.h"
 #include "semihosting/common-semi.h"
+#include "exec/page-protection.h"
 #include "target/arm/syndrome.h"
 
 #define get_user_code_u32(x, gaddr, env)                \
index 41fae2b520d42de777e780f9a6cc54823d0be69b..746e22b275f8d4b28b09ebb5211fa9ac66a5f83e 100644 (file)
@@ -8,6 +8,7 @@
 
 #include "qemu.h"
 #include "user/tswap-target.h"
+#include "exec/page-protection.h"
 #include "user/guest-base.h"
 #include "user-internals.h"
 #include "signal-common.h"
index 66a16310940ea93e986742e82b83e9e2755c6e65..72b30279a2c6486dcbc8fdb49d53802368ed84ca 100644 (file)
@@ -20,6 +20,7 @@
 #include <sys/shm.h>
 #include "trace.h"
 #include "exec/log.h"
+#include "exec/page-protection.h"
 #include "qemu.h"
 #include "user-internals.h"
 #include "user-mmap.h"
index 05dc4afb524b38f3c99698d5bb64f0f36188e4a7..63ac2df53b768012e3ca97a279caaa4797f0225c 100644 (file)
@@ -19,6 +19,7 @@
 #include "qemu/osdep.h"
 #include "qemu/bitops.h"
 #include "gdbstub/user.h"
+#include "exec/page-protection.h"
 #include "hw/core/tcg-cpu-ops.h"
 
 #include <sys/ucontext.h>
index 41659b63f547888807354a82f7a5016fc724e7a2..6a492c9d3570900d03446aab9013d7716ceb1c34 100644 (file)
@@ -25,6 +25,7 @@
 #include "qemu/plugin.h"
 #include "tcg/startup.h"
 #include "target_mman.h"
+#include "exec/page-protection.h"
 #include <elf.h>
 #include <endian.h>
 #include <grp.h>
index 1a81c226bae4c4c0d7915f5a36f689aff8b17951..44e477a1a5e9797f89edab41243242deb2a0f54b 100644 (file)
@@ -31,6 +31,7 @@
 #endif /* CONFIG_TCG */
 
 #include "exec/exec-all.h"
+#include "exec/page-protection.h"
 #include "exec/target_page.h"
 #include "hw/qdev-core.h"
 #include "hw/qdev-properties.h"
index c5e4958f8b98db00adccef031dfd7091e31d231c..2f1000c99fa9c24fdbb12c712af941cf7e244266 100644 (file)
@@ -21,6 +21,7 @@
 #include "qemu/log.h"
 #include "cpu.h"
 #include "exec/exec-all.h"
+#include "exec/page-protection.h"
 #include "fpu/softfloat-types.h"
 #include "exec/helper-proto.h"
 #include "qemu/qemu-print.h"
index a550bcd25fe7bb8403640bce36943eaef18add9a..c17264c23904cefc34e6fadd9e7319764d2be5ec 100644 (file)
@@ -26,6 +26,7 @@
 #include "cpu-qom.h"
 #include "exec/cpu-defs.h"
 #include "exec/gdbstub.h"
+#include "exec/page-protection.h"
 #include "qapi/qapi-types-common.h"
 #include "target/arm/multiprocessing.h"
 #include "target/arm/gtimer.h"
index 31ae43f60edb04b382700e81abf26f3907f33902..4476b32ff50358bf45ac0b0c5b4f764699889ea5 100644 (file)
@@ -11,6 +11,7 @@
 #include "qemu/range.h"
 #include "qemu/main-loop.h"
 #include "exec/exec-all.h"
+#include "exec/page-protection.h"
 #include "cpu.h"
 #include "internals.h"
 #include "cpu-features.h"
index d1f1e02acc11a8f1964c47e218173c649c51e75a..23d7f730357c7b5ecd590f01f91c8fdc5f65daf1 100644 (file)
@@ -16,6 +16,7 @@
 #include "qemu/bitops.h"
 #include "qemu/log.h"
 #include "exec/exec-all.h"
+#include "exec/page-protection.h"
 #ifdef CONFIG_TCG
 #include "exec/cpu_ldst.h"
 #include "semihosting/common-semi.h"
index d971b81370134790d47087027a3e2291cb1dafab..037ac6dd60d0913d26b35fb5f209cfe045c40eae 100644 (file)
@@ -22,6 +22,7 @@
 #include "cpu.h"
 #include "internals.h"
 #include "exec/exec-all.h"
+#include "exec/page-protection.h"
 #include "exec/ram_addr.h"
 #include "exec/cpu_ldst.h"
 #include "exec/helper-proto.h"
index 6853f58c19411d4ae2fa6b24b87a0a18c90867ee..dd49e67d7a3041a83ba2cd915f22beaa4334f222 100644 (file)
@@ -21,6 +21,7 @@
 #include "cpu.h"
 #include "internals.h"
 #include "exec/exec-all.h"
+#include "exec/page-protection.h"
 #include "exec/helper-proto.h"
 #include "tcg/tcg-gvec-desc.h"
 #include "fpu/softfloat.h"
index eeca415c43d1ddfdbbb161d604b5e186f9d75a56..345708a1b39fb07a6ed12d272575413746e503fd 100644 (file)
@@ -24,6 +24,7 @@
 #include "cpu.h"
 #include "hw/core/tcg-cpu-ops.h"
 #include "exec/exec-all.h"
+#include "exec/page-protection.h"
 #include "exec/cpu_ldst.h"
 #include "exec/address-spaces.h"
 #include "exec/helper-proto.h"
index c25c31c9f8dc3c3d2cb2fbc33b0fe22b99fad61e..d51008c54108dc5ffd6d69cc52ed5be6440043b5 100644 (file)
@@ -21,6 +21,7 @@
 #include "qemu/osdep.h"
 #include "cpu.h"
 #include "exec/exec-all.h"
+#include "exec/page-protection.h"
 #include "mmu.h"
 
 #ifdef DEBUG
index 84785b5a5c61efdd1c1cc8530936612fe3a2a369..d09877afd769bf63bf23627a7898028646c42b83 100644 (file)
@@ -21,6 +21,7 @@
 #include "qemu/log.h"
 #include "cpu.h"
 #include "exec/exec-all.h"
+#include "exec/page-protection.h"
 #include "exec/helper-proto.h"
 #include "hw/core/cpu.h"
 #include "trace.h"
index 42fa4809504e445fd9212887f93b027105a9a95d..6d456118881e864c07cfe221173eea6e4574b315 100644 (file)
@@ -22,6 +22,7 @@
 #include "disas/disas.h"
 #include "qemu/host-utils.h"
 #include "exec/exec-all.h"
+#include "exec/page-protection.h"
 #include "tcg/tcg-op.h"
 #include "tcg/tcg-op-gvec.h"
 #include "exec/helper-proto.h"
index 7a57b7dd10bd17c9694d30957e0332a4fe499b6e..8fb05b1f531ae0d7967ac03a06ca7ba7b7157e55 100644 (file)
@@ -21,6 +21,7 @@
 #include "cpu.h"
 #include "exec/cpu_ldst.h"
 #include "exec/exec-all.h"
+#include "exec/page-protection.h"
 #include "tcg/helper-tcg.h"
 
 typedef struct TranslateParams {
index 57f53086324ee6818aa06306971321221cd0a0cd..d6331f9b0bbabd578401cfcb25a8433ace930265 100644 (file)
@@ -13,6 +13,7 @@
 #include "internals.h"
 #include "exec/helper-proto.h"
 #include "exec/exec-all.h"
+#include "exec/page-protection.h"
 #include "exec/cpu_ldst.h"
 #include "exec/log.h"
 #include "cpu-csr.h"
index 7a91f33b172a1046ccebc3344f5f6f89dad122f8..7967ad13cbf79863e87258e513dfd8c4e4cebac6 100644 (file)
@@ -21,6 +21,7 @@
 #include "qemu/osdep.h"
 #include "cpu.h"
 #include "exec/exec-all.h"
+#include "exec/page-protection.h"
 #include "exec/gdbstub.h"
 #include "exec/helper-proto.h"
 #include "gdbstub/helpers.h"
index ff5f86ddc2d5605de25902abb3524ded4566ab25..5d3259ce316da3a67f062ec0288b7eb4a45e7ab6 100644 (file)
@@ -21,6 +21,7 @@
 #include "qemu/osdep.h"
 #include "cpu.h"
 #include "exec/exec-all.h"
+#include "exec/page-protection.h"
 #include "qemu/host-utils.h"
 #include "exec/log.h"
 
index 234006634e4e6d769d3c340aadcb9cbf2bb81d63..2423ac6172d38f3aacee0743d00556fd354f2d65 100644 (file)
@@ -22,6 +22,7 @@
 #include "qemu/log.h"
 #include "cpu.h"
 #include "exec/exec-all.h"
+#include "exec/page-protection.h"
 
 static unsigned int tlb_decode_size(unsigned int f)
 {
index 5c5184e136f5b29684d96a6408f9c6c1b028c0c1..505781d84c1cbca4fbd56b4c4d3ff42fdb6391cc 100644 (file)
@@ -19,6 +19,7 @@
 #include "qemu/osdep.h"
 #include "cpu.h"
 #include "exec/exec-all.h"
+#include "exec/page-protection.h"
 #include "../internal.h"
 
 static int is_seg_am_mapped(unsigned int am, bool eu, int mmu_idx)
index 119eae771e6e47434f94958ac980007c955d484e..3ba6d369a663873c24bf17c551857bff5fe2e847 100644 (file)
@@ -22,6 +22,7 @@
 #include "cpu.h"
 #include "internal.h"
 #include "exec/exec-all.h"
+#include "exec/page-protection.h"
 #include "exec/cpu_ldst.h"
 #include "exec/log.h"
 #include "exec/helper-proto.h"
index 603c26715ee992314ca55c206513de353ead8fff..c632d5230b29ef464da4db2cbbf8f4740070b304 100644 (file)
@@ -22,6 +22,7 @@
 #include "qemu/log.h"
 #include "cpu.h"
 #include "exec/exec-all.h"
+#include "exec/page-protection.h"
 #include "gdbstub/helpers.h"
 #include "qemu/host-utils.h"
 #include "hw/loader.h"
index 601c0b533f1f2b2c2d5e2158f52449ac472b10a5..98b41a970c142e9373a4af772550edab8feaab6f 100644 (file)
@@ -20,6 +20,7 @@
 
 #include "exec/breakpoint.h"
 #include "hw/registerfields.h"
+#include "exec/page-protection.h"
 
 /* PM instructions */
 typedef enum {
index 3976416840f834777c6f47ae3feb3c8b55882e79..6dfedab11dff4449eb3995a1fae67929b6014f39 100644 (file)
@@ -21,6 +21,7 @@
 #include "qemu/osdep.h"
 #include "cpu.h"
 #include "exec/exec-all.h"
+#include "exec/page-protection.h"
 #include "sysemu/kvm.h"
 #include "kvm_ppc.h"
 #include "internal.h"
index d645c0bb94aeac03c99d8b8cdce43af0140e1ee3..5a0d80fedacc31a359fafacd29bd625e99b5b0d2 100644 (file)
@@ -21,6 +21,7 @@
 #include "qemu/units.h"
 #include "cpu.h"
 #include "exec/exec-all.h"
+#include "exec/page-protection.h"
 #include "qemu/error-report.h"
 #include "qemu/qemu-print.h"
 #include "sysemu/hw_accel.h"
index 690dff7a49bc5e0767aa848b576742173cb84971..8daf71d2db291724d15f5e7b4758fa5f55f4e1a5 100644 (file)
@@ -20,6 +20,7 @@
 #include "qemu/osdep.h"
 #include "cpu.h"
 #include "exec/exec-all.h"
+#include "exec/page-protection.h"
 #include "qemu/error-report.h"
 #include "sysemu/kvm.h"
 #include "kvm_ppc.h"
index 4c768aa5cc748b3344e825336b83245d4a96ac35..c5c04a152780a463f88b9deaca627366ca2e89d4 100644 (file)
@@ -3,6 +3,8 @@
 
 #ifndef CONFIG_USER_ONLY
 
+#include "exec/page-protection.h"
+
 /* Radix Quadrants */
 #define R_EADDR_MASK            0x3FFFFFFFFFFFFFFF
 #define R_EADDR_VALID_MASK      0xC00FFFFFFFFFFFFF
index 751403f1c885390d11b5cd1e4ac068baa6720638..4fde7fd3bf6a091bacb789c077bac30d8b88f292 100644 (file)
@@ -25,6 +25,7 @@
 #include "mmu-hash64.h"
 #include "mmu-hash32.h"
 #include "exec/exec-all.h"
+#include "exec/page-protection.h"
 #include "exec/log.h"
 #include "helper_regs.h"
 #include "qemu/error-report.h"
index c071b4d5e2159d179fe16e43d15e016693e02dad..b35a93c1987fd8248c12bcfd8435ef1be5260bbb 100644 (file)
@@ -25,6 +25,7 @@
 #include "mmu-hash64.h"
 #include "mmu-hash32.h"
 #include "exec/exec-all.h"
+#include "exec/page-protection.h"
 #include "exec/log.h"
 #include "helper_regs.h"
 #include "qemu/error-report.h"
index fc090d729a1be6185cb51419a319fffbcc0efd42..8ad546a45afc0f0adc4895dae818513841aa067f 100644 (file)
@@ -24,6 +24,7 @@
 #include "internals.h"
 #include "pmu.h"
 #include "exec/exec-all.h"
+#include "exec/page-protection.h"
 #include "instmap.h"
 #include "tcg/tcg-op.h"
 #include "trace.h"
index 2a76b611a00369adf6ec65a1d2d58c00f3ab684a..9eea397e72c6cc7a9347014195be5a7b6295f6d1 100644 (file)
@@ -25,6 +25,7 @@
 #include "cpu.h"
 #include "trace.h"
 #include "exec/exec-all.h"
+#include "exec/page-protection.h"
 
 static bool pmp_write_cfg(CPURISCVState *env, uint32_t addr_index,
                           uint8_t val);
index fa139040f82499c0d8c98c3bb8c81e58198434ba..1b4d5a8e378a5d4f5726c941eb9bd6e211bd64e7 100644 (file)
@@ -23,6 +23,7 @@
 #include "exec/memop.h"
 #include "exec/exec-all.h"
 #include "exec/cpu_ldst.h"
+#include "exec/page-protection.h"
 #include "exec/helper-proto.h"
 #include "fpu/softfloat.h"
 #include "tcg/tcg-gvec-desc.h"
index e3dfb0972257356bb6e0cab0ba7136b91133eaad..c1a592e893e3a29509ace52003b52375a85c9776 100644 (file)
@@ -22,6 +22,7 @@
 #include "cpu.h"
 #include "migration/vmstate.h"
 #include "exec/exec-all.h"
+#include "exec/page-protection.h"
 #include "hw/loader.h"
 #include "fpu/softfloat.h"
 #include "tcg/debug-assert.h"
index fbb2f1b4d485ea702588d377ec75e16d10a8f103..f3a2f25a5cc8554be5c18e36edbc74b8251220c9 100644 (file)
@@ -24,6 +24,7 @@
 #include "sysemu/kvm.h"
 #include "sysemu/tcg.h"
 #include "exec/exec-all.h"
+#include "exec/page-protection.h"
 #include "trace.h"
 #include "hw/hw.h"
 #include "hw/s390x/storage-keys.h"
index 557831def407b8c007704c8709106a3f43624f42..6a308c55530aa740550f6aa6a70117cf46cdbd65 100644 (file)
@@ -25,6 +25,7 @@
 #include "tcg_s390x.h"
 #include "exec/helper-proto.h"
 #include "exec/exec-all.h"
+#include "exec/page-protection.h"
 #include "exec/cpu_ldst.h"
 #include "hw/core/tcg-cpu-ops.h"
 #include "qemu/int128.h"
index 7c6f9d374ab1f2e9855672a0dcd880a1ab97a8fd..670291062778ebbf099b9400ca268eaa5a37df01 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "cpu.h"
 #include "exec/exec-all.h"
+#include "exec/page-protection.h"
 #include "exec/log.h"
 
 #if !defined(CONFIG_USER_ONLY)
index 2846a86cc4e346d7d7093cccc2cd214b84332707..7bdf99e0c09e71fe005de306f1c66cef832afb40 100644 (file)
@@ -23,6 +23,7 @@
 #include "tcg/tcg.h"
 #include "exec/helper-proto.h"
 #include "exec/exec-all.h"
+#include "exec/page-protection.h"
 #include "exec/cpu_ldst.h"
 #include "asi.h"
 
index ad1591d9fdc0ac47e15324e16f8835eaae976dce..9ff06026b8c1346639130b19fea687c9bf778411 100644 (file)
@@ -21,6 +21,7 @@
 #include "qemu/log.h"
 #include "cpu.h"
 #include "exec/exec-all.h"
+#include "exec/page-protection.h"
 #include "qemu/qemu-print.h"
 #include "trace.h"
 
index 76bd2263708e4b499799c4e84151c576ccd55b45..7014255f77cdd1fe39564aa8e24fb82c4cfab023 100644 (file)
@@ -20,6 +20,7 @@
 #include "hw/registerfields.h"
 #include "cpu.h"
 #include "exec/exec-all.h"
+#include "exec/page-protection.h"
 #include "fpu/softfloat-helpers.h"
 #include "qemu/qemu-print.h"
 
index 47063b0a57bcc58b46ccb9eba4d0955ad703428d..997b21d3890f56babb60fbe266ec1849f4df20c8 100644 (file)
@@ -33,6 +33,7 @@
 #include "exec/helper-proto.h"
 #include "qemu/host-utils.h"
 #include "exec/exec-all.h"
+#include "exec/page-protection.h"
 
 #define XTENSA_MPU_SEGMENT_MASK 0x0000001f
 #define XTENSA_MPU_ACC_RIGHTS_MASK 0x00000f00
index 496754ba57eea2b7d6331a88af8321d3618aea88..028d4e0a1c713cdc12e2c55fbfaf917b59d2a6de 100644 (file)
@@ -28,6 +28,7 @@
 #include "qemu/osdep.h"
 #include "cpu.h"
 #include "exec/helper-proto.h"
+#include "exec/page-protection.h"
 #include "qemu/host-utils.h"
 #include "exec/exec-all.h"
 #include "qemu/atomic.h"