linux-user: Implement signals for openrisc
commite8f29049b1e904068ce874e6a40b6ad18b26e121
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 27 May 2018 19:02:17 +0000 (27 14:02 -0500)
committerStafford Horne <shorne@gmail.com>
Tue, 3 Jul 2018 13:40:33 +0000 (3 22:40 +0900)
tree954be452e037a4384971bf9c9554bea2ebad70d1
parentecbed7280c832220d9ac8ea7c0b6163393e3cb1a
linux-user: Implement signals for openrisc

All of the existing code was boilerplate from elsewhere,
and would crash the guest upon the first signal.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Stafford Horne <shorne@gmail.com>
---
v2:
  Add a comment to the new definition of target_pt_regs.
  Install the signal mask into the ucontext.
v3:
  Incorporate feedback from Laurent.
linux-user/openrisc/signal.c
linux-user/openrisc/target_syscall.h
linux-user/signal.c
target/openrisc/cpu.c