mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-17 21:26:13 -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:
parent
1072f927f0
commit
86b7c55182
7 changed files with 10 additions and 10 deletions
|
|
@ -96,7 +96,7 @@ int target_mprotect(abi_ulong start, abi_ulong len, int prot)
|
|||
end = host_end;
|
||||
}
|
||||
ret = mprotect(g2h_untagged(host_start),
|
||||
qemu_host_page_size, prot1 & PAGE_BITS);
|
||||
qemu_host_page_size, prot1 & PAGE_RWX);
|
||||
if (ret != 0)
|
||||
goto error;
|
||||
host_start += qemu_host_page_size;
|
||||
|
|
@ -107,7 +107,7 @@ int target_mprotect(abi_ulong start, abi_ulong len, int prot)
|
|||
prot1 |= page_get_flags(addr);
|
||||
}
|
||||
ret = mprotect(g2h_untagged(host_end - qemu_host_page_size),
|
||||
qemu_host_page_size, prot1 & PAGE_BITS);
|
||||
qemu_host_page_size, prot1 & PAGE_RWX);
|
||||
if (ret != 0)
|
||||
goto error;
|
||||
host_end -= qemu_host_page_size;
|
||||
|
|
@ -174,7 +174,7 @@ static int mmap_frag(abi_ulong real_start,
|
|||
return -1;
|
||||
prot1 = prot;
|
||||
}
|
||||
prot1 &= PAGE_BITS;
|
||||
prot1 &= PAGE_RWX;
|
||||
|
||||
prot_new = prot | prot1;
|
||||
if (fd != -1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue