linux-user: Pass si_type information to queue_signal() explicitly
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 28 Jul 2016 15:44:46 +0000 (16:44 +0100)
committerRiku Voipio <riku.voipio@linaro.org>
Wed, 21 Sep 2016 19:01:28 +0000 (22:01 +0300)
commit9d2803f720d5b71937c0f564bb2c16d8f5e18c8c
tree8535b9a62b299d094a601a4e84e5c7833a2a0244
parent8bd3773cce1885c46e5cf09a72b9138ccba5fbf2
linux-user: Pass si_type information to queue_signal() explicitly

Instead of assuming in queue_signal() that all callers are passing
a siginfo structure which uses the _sifields._sigfault part of the
union (and thus a si_type of QEMU_SI_FAULT), make callers pass
the si_type they require in as an argument.

[RV adjusted to apply]
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/main.c
linux-user/qemu.h
linux-user/signal.c
linux-user/syscall.c