A couple of points I noticed with bsd-user copying linux-user:
(1) Make sure to remap memory for reserved_va
(2) Use something better than an array for tracking shmat.
r~
Richard Henderson (4):
linux-user: Move shmat and shmdt implementations to mmap.c
linux-user: Use WITH_MMAP_LOCK_GUARD in target_{shmat,shmdt}
linux-user: Fix shmdt
linux-user: Track shm regions with an interval tree
linux-user/user-mmap.h | 4 +
linux-user/mmap.c | 168 +++++++++++++++++++++++++++++++++++++++++
linux-user/syscall.c | 143 +----------------------------------
3 files changed, 176 insertions(+), 139 deletions(-)
--
2.34.1