linux-user/ppc: Use force_sig_fault
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 7 Jan 2022 21:32:38 +0000 (13:32 -0800)
committerLaurent Vivier <laurent@vivier.eu>
Tue, 11 Jan 2022 17:40:44 +0000 (18:40 +0100)
commitd30e60e7b4c38c3688e5690bc28f582c64a3c971
tree6f1bfe751f2806ea4b87ab7ddaa5e4d3d370bff2
parentb60070566914d09f52d0225006e8eeab85a233cf
linux-user/ppc: Use force_sig_fault

Use the new function instead of setting up a target_siginfo_t
and calling queue_signal.  Fill in the missing PC for SIGTRAP.
The fault address for POWERPC_EXCP_ISI is nip exactly, not nip - 4.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220107213243.212806-20-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/ppc/cpu_loop.c