[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 01/34] common-user/host/sparc64: Fix safe_syscall_base
|
From: |
Richard Henderson |
|
Subject: |
[PULL 01/34] common-user/host/sparc64: Fix safe_syscall_base |
|
Date: |
Fri, 11 Feb 2022 12:30:26 +1100 |
Use the "retl" instead of "ret" instruction alias, since we
do not allocate a register window in this function.
Fix the offset to the first stacked parameter, which lies
beyond the register window save area.
Fixes: 95c021dac835 ("linux-user/host/sparc64: Add safe-syscall.inc.S")
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
common-user/host/sparc64/safe-syscall.inc.S | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/common-user/host/sparc64/safe-syscall.inc.S
b/common-user/host/sparc64/safe-syscall.inc.S
index a2f2b9c967..c7be8f2d25 100644
--- a/common-user/host/sparc64/safe-syscall.inc.S
+++ b/common-user/host/sparc64/safe-syscall.inc.S
@@ -24,7 +24,8 @@
.type safe_syscall_end, @function
#define STACK_BIAS 2047
-#define PARAM(N) STACK_BIAS + N*8
+#define WINDOW_SIZE 16 * 8
+#define PARAM(N) STACK_BIAS + WINDOW_SIZE + N * 8
/*
* This is the entry point for making a system call. The calling
@@ -74,7 +75,7 @@ safe_syscall_end:
/* code path for having successfully executed the syscall */
bcs,pn %xcc, 1f
nop
- ret
+ retl
nop
/* code path when we didn't execute the syscall */
--
2.25.1
- [PULL 00/34] tcg patch queue, Richard Henderson, 2022/02/10
- [PULL 01/34] common-user/host/sparc64: Fix safe_syscall_base,
Richard Henderson <=
- [PULL 02/34] linux-user: Introduce host_signal_mask, Richard Henderson, 2022/02/10
- [PULL 03/34] linux-user: Introduce host_sigcontext, Richard Henderson, 2022/02/10
- [PULL 05/34] linux-user/include/host/sparc64: Fix host_sigcontext, Richard Henderson, 2022/02/10
- [PULL 04/34] linux-user: Move sparc/host-signal.h to sparc64/host-signal.h, Richard Henderson, 2022/02/10
- [PULL 11/34] tcg/aarch64: Support raising sigbus for user-only, Richard Henderson, 2022/02/10
- [PULL 07/34] softmmu/cpus: Check if the cpu work list is empty atomically, Richard Henderson, 2022/02/10
- [PULL 08/34] replay: use CF_NOIRQ for special exception-replaying TB, Richard Henderson, 2022/02/10
- [PULL 06/34] accel/tcg: Optimize jump cache flush during tlb range flush, Richard Henderson, 2022/02/10
- [PULL 10/34] tcg/i386: Support raising sigbus for user-only, Richard Henderson, 2022/02/10
- [PULL 09/34] tcg/loongarch64: Fix fallout from recent MO_Q renaming, Richard Henderson, 2022/02/10