Re: [PATCH v3 17/27] linux-user/nios2: Map a real kuser page

2021-09-27 Thread Richard Henderson
On 9/27/21 9:26 AM, Peter Maydell wrote: +/* + * If the mmap doesn't give us exactly page 1, there's nothing + * we can do, and it's unlikely that the program will be able + * to continue. FIXME: Error out now? + */ +assert(pg == TARGET_PAGE_SIZE); Shouldn't we be

Re: [PATCH v3 17/27] linux-user/nios2: Map a real kuser page

2021-09-27 Thread Peter Maydell
On Fri, 24 Sept 2021 at 17:59, Richard Henderson wrote: > > The first word of page1 is data, so the whole thing > can't be implemented with emulation of addresses. > > Hijack trap number 31 to implement cmpxchg. 31 is used -- it's "breakpoint". We need to pick something else... > > Set

[PATCH v3 17/27] linux-user/nios2: Map a real kuser page

2021-09-24 Thread Richard Henderson
The first word of page1 is data, so the whole thing can't be implemented with emulation of addresses. Hijack trap number 31 to implement cmpxchg. Set default_rt_sigreturn based on the kuser page. Signed-off-by: Richard Henderson --- linux-user/nios2/target_signal.h | 3 ++