summaryrefslogtreecommitdiffstats
path: root/common-user
diff options
context:
space:
mode:
authorRichard Henderson2022-01-05 06:14:23 +0100
committerRichard Henderson2022-01-05 06:14:23 +0100
commitfb084237a3b78b20fd9d888dffd673b6656ea3be (patch)
treee584963a11ff19cfb9d485972a5c5b0d038a07a4 /common-user
parentMerge tag 'pull-tcg-20220104' of https://gitlab.com/rth7680/qemu into staging (diff)
downloadqemu-fb084237a3b78b20fd9d888dffd673b6656ea3be.tar.gz
qemu-fb084237a3b78b20fd9d888dffd673b6656ea3be.tar.xz
qemu-fb084237a3b78b20fd9d888dffd673b6656ea3be.zip
common-user: Really fix i386 calls to safe_syscall_set_errno_tail
Brown bag time: offset 0 from esp is the return address, offset 4 is the first argument. Fixes: d7478d4229f0 ("common-user: Fix tail calls to safe_syscall_set_errno_tail") Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'common-user')
-rw-r--r--common-user/host/i386/safe-syscall.inc.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/common-user/host/i386/safe-syscall.inc.S b/common-user/host/i386/safe-syscall.inc.S
index 9c45e56e48..db2ed09839 100644
--- a/common-user/host/i386/safe-syscall.inc.S
+++ b/common-user/host/i386/safe-syscall.inc.S
@@ -120,7 +120,7 @@ safe_syscall_end:
pop %ebp
.cfi_adjust_cfa_offset -4
.cfi_restore ebp
- mov %eax, (%esp)
+ mov %eax, 4(%esp)
jmp safe_syscall_set_errno_tail
.cfi_endproc