aboutsummaryrefslogtreecommitdiff
path: root/linux-user/sparc/target_signal.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2021-09-29 09:05:50 -0400
committerLaurent Vivier <laurent@vivier.eu>2021-10-01 12:03:48 +0200
commit3f7685eaf90b36d0dc39d4719840e736c019a05c (patch)
treeef19f97a7ca0301ed798cbaeaa27fb6bee9c98f8 /linux-user/sparc/target_signal.h
parentb9188f9ccc2af655666cfaac12ff9fb4db3c6009 (diff)
downloadqemu-3f7685eaf90b36d0dc39d4719840e736c019a05c.zip
qemu-3f7685eaf90b36d0dc39d4719840e736c019a05c.tar.gz
qemu-3f7685eaf90b36d0dc39d4719840e736c019a05c.tar.bz2
linux-user/sparc: Implement setup_sigtramp
Create and record the two signal trampolines. Use them when the guest does not use SA_RESTORER. Acked-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20210929130553.121567-24-richard.henderson@linaro.org> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'linux-user/sparc/target_signal.h')
-rw-r--r--linux-user/sparc/target_signal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux-user/sparc/target_signal.h b/linux-user/sparc/target_signal.h
index 34f9a12..e661ddd 100644
--- a/linux-user/sparc/target_signal.h
+++ b/linux-user/sparc/target_signal.h
@@ -69,6 +69,10 @@ typedef struct target_sigaltstack {
#ifdef TARGET_ABI32
#define TARGET_ARCH_HAS_SETUP_FRAME
+#define TARGET_ARCH_HAS_SIGTRAMP_PAGE 1
+#else
+/* For sparc64, use of KA_RESTORER is mandatory. */
+#define TARGET_ARCH_HAS_SIGTRAMP_PAGE 0
#endif
/* bit-flags */