mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
exec/cpu: Rename PAGE_BITS macro to PAGE_RWX
This macro can be used to abbreviate PAGE_READ | PAGE_WRITE | PAGE_EXEC for which PAGE_RWX is a better name and renaming it also shows it is not related to TARGET_PAGE_BITS. Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20240505121008.44A0D4E602D@zero.eik.bme.hu> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
committed by
Philippe Mathieu-Daudé
parent
1072f927f0
commit
86b7c55182
@@ -2361,7 +2361,7 @@ static bool zero_bss(abi_ulong start_bss, abi_ulong end_bss,
|
||||
if (start_bss < align_bss) {
|
||||
int flags = page_get_flags(start_bss);
|
||||
|
||||
if (!(flags & PAGE_BITS)) {
|
||||
if (!(flags & PAGE_RWX)) {
|
||||
/*
|
||||
* The whole address space of the executable was reserved
|
||||
* at the start, therefore all pages will be VALID.
|
||||
|
||||
+1
-1
@@ -117,7 +117,7 @@ static void shm_region_rm_complete(abi_ptr start, abi_ptr last)
|
||||
static int validate_prot_to_pageflags(int prot)
|
||||
{
|
||||
int valid = PROT_READ | PROT_WRITE | PROT_EXEC | TARGET_PROT_SEM;
|
||||
int page_flags = (prot & PAGE_BITS) | PAGE_VALID;
|
||||
int page_flags = (prot & PAGE_RWX) | PAGE_VALID;
|
||||
|
||||
#ifdef TARGET_AARCH64
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user