mbox series

[v3,0/2] SIGSEGV fixes

Message ID 1626384156-6248-1-git-send-email-tsimpson@quicinc.com
Headers show
Series SIGSEGV fixes | expand

Message

Taylor Simpson July 15, 2021, 9:22 p.m. UTC
The Hexagon target was silently failing the SIGSEGV test because
the signal handler was not called.

Patch 1/2 fixes the Hexagon target
Patch 2/2 adds a check that the signal handler is called

**** Changes in v2 ****
Address feedback from Richard Henderson <richard.henderson@linaro.org>
- Replace put_user_* with cpu_st*_data_ra
- Replace get_user_* with cpu_ld*_data_ra
- Treat sig_segv_called as a counter

**** Changes in v3 ****
Address feedback from Richard Henderson <richard.henderson@linaro.org>
- Pass host PC as return address for cpu_st_*_data_ra/cpu_ld*_data_ra


Taylor Simpson (2):
  Hexagon (target/hexagon) remove put_user_*/get_user_*
  linux-test (tests/tcg/multiarch/linux-test.c) add check

 target/hexagon/op_helper.c       | 39 ++++++++++++++++++---------------------
 tests/tcg/multiarch/linux-test.c |  8 ++++++++
 2 files changed, 26 insertions(+), 21 deletions(-)