linux-user/i386: Implement setup_sigtramp
commit8ee8a104807f67595c1a1963dbee208a52cc513b
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 29 Sep 2021 13:05:37 +0000 (29 09:05 -0400)
committerLaurent Vivier <laurent@vivier.eu>
Fri, 1 Oct 2021 10:03:48 +0000 (1 12:03 +0200)
tree60368c646a7631ed8eae2e14a01cdce5cbe69f08
parenta22fccd8b7de9e21fc31cc048e2bf9c15947f4a4
linux-user/i386: Implement setup_sigtramp

Create and record the two signal trampolines.
Use them when the guest does not use SA_RESTORER.
Note that x86_64 does not use this code.

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210929130553.121567-11-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/i386/signal.c
linux-user/i386/target_signal.h
linux-user/x86_64/target_signal.h