linux-user/nios2: Map a real kuser page
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 21 Dec 2021 02:50:09 +0000 (18:50 -0800)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 6 Jan 2022 10:40:52 +0000 (11:40 +0100)
commitf5ef0e518d0331920cef0fb6f6c1141695ffab7b
treefe77a0674923ff68807f5a816753bd4658d522ea
parent66346faf3200a0607a5498684e14e84c718dc233
linux-user/nios2: Map a real kuser page

The first word of page1 is data, so the whole thing
can't be implemented with emulation of addresses.
Use init_guest_commpage for the allocation.

Hijack trap number 16 to implement cmpxchg.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20211221025012.1057923-5-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/elfload.c
linux-user/nios2/cpu_loop.c
target/nios2/translate.c