Le 21/12/2021 à 03:50, Richard Henderson a écrit :
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.hender...@linaro.org>
---
  linux-user/elfload.c        | 50 ++++++++++++++++++++++++++++++++++++-
  linux-user/nios2/cpu_loop.c | 50 ++++++++++++++++++++-----------------
  target/nios2/translate.c    |  9 -------
  3 files changed, 76 insertions(+), 33 deletions(-)


Reviewed-by: Laurent Vivier <laur...@vivier.eu>


Reply via email to