summary refs log tree commit diff stats
path: root/linux-user/mmap.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-12-06 20:27:32 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-05-06 11:17:15 +0200
commit74781c0888e819552538593c0932d98ea16c766b (patch)
treee85aad55b916ffdeab346e2beae80e65e946259d /linux-user/mmap.c
parent7dd1259b374ee32bf2a967697053e5401369c29d (diff)
downloadfocaccia-qemu-74781c0888e819552538593c0932d98ea16c766b.tar.gz
focaccia-qemu-74781c0888e819552538593c0932d98ea16c766b.zip
exec/cpu: Extract page-protection definitions to page-protection.h
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>
Diffstat (limited to 'linux-user/mmap.c')
-rw-r--r--linux-user/mmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux-user/mmap.c b/linux-user/mmap.c
index 66a1631094..72b30279a2 100644
--- a/linux-user/mmap.c
+++ b/linux-user/mmap.c
@@ -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"