mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-26 20:03:54 -06:00
linux-user: Populate more bits in mmap_flags_tbl
Fix translation of TARGET_MAP_SHARED and TARGET_MAP_PRIVATE, which are types not single bits. Add TARGET_MAP_SHARED_VALIDATE, TARGET_MAP_SYNC, TARGET_MAP_NONBLOCK, TARGET_MAP_POPULATE, TARGET_MAP_FIXED_NOREPLACE, and TARGET_MAP_UNINITIALIZED. Update strace to match. Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20230707204054.8792-9-richard.henderson@linaro.org>
This commit is contained in:
parent
6edfca9eae
commit
4b840f9609
2 changed files with 29 additions and 15 deletions
|
@ -1094,28 +1094,25 @@ UNUSED static const struct flags mmap_prot_flags[] = {
|
|||
};
|
||||
|
||||
UNUSED static const struct flags mmap_flags[] = {
|
||||
FLAG_TARGET(MAP_SHARED),
|
||||
FLAG_TARGET(MAP_PRIVATE),
|
||||
FLAG_TARGET_MASK(MAP_SHARED, MAP_TYPE),
|
||||
FLAG_TARGET_MASK(MAP_PRIVATE, MAP_TYPE),
|
||||
FLAG_TARGET_MASK(MAP_SHARED_VALIDATE, MAP_TYPE),
|
||||
FLAG_TARGET(MAP_ANONYMOUS),
|
||||
FLAG_TARGET(MAP_DENYWRITE),
|
||||
FLAG_TARGET(MAP_FIXED),
|
||||
FLAG_TARGET(MAP_GROWSDOWN),
|
||||
FLAG_TARGET(MAP_EXECUTABLE),
|
||||
#ifdef MAP_LOCKED
|
||||
FLAG_TARGET(MAP_FIXED),
|
||||
FLAG_TARGET(MAP_FIXED_NOREPLACE),
|
||||
FLAG_TARGET(MAP_GROWSDOWN),
|
||||
FLAG_TARGET(MAP_HUGETLB),
|
||||
FLAG_TARGET(MAP_LOCKED),
|
||||
#endif
|
||||
#ifdef MAP_NONBLOCK
|
||||
FLAG_TARGET(MAP_NONBLOCK),
|
||||
#endif
|
||||
FLAG_TARGET(MAP_NORESERVE),
|
||||
#ifdef MAP_POPULATE
|
||||
FLAG_TARGET(MAP_POPULATE),
|
||||
#endif
|
||||
#if defined(TARGET_MAP_UNINITIALIZED) && TARGET_MAP_UNINITIALIZED != 0
|
||||
FLAG_TARGET(MAP_STACK),
|
||||
FLAG_TARGET(MAP_SYNC),
|
||||
#if TARGET_MAP_UNINITIALIZED != 0
|
||||
FLAG_TARGET(MAP_UNINITIALIZED),
|
||||
#endif
|
||||
FLAG_TARGET(MAP_HUGETLB),
|
||||
FLAG_TARGET(MAP_STACK),
|
||||
FLAG_END,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue