aboutsummaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2016-07-11 14:10:09 +0100
committerPeter Maydell <peter.maydell@linaro.org>2016-07-11 14:10:09 +0100
commitb3b22db69fdefbde00a4499453b76c6b57464711 (patch)
tree9373a354917828ced43dbd0a0e2ccaa528f11dd3 /linux-user
parentf7d3f8c0c0737b3b99a45b46ea23f4ab15cdb135 (diff)
parentcdbd727c20ad7aac7797dc8c95e485e1a4c6901b (diff)
downloadqemu-b3b22db69fdefbde00a4499453b76c6b57464711.zip
qemu-b3b22db69fdefbde00a4499453b76c6b57464711.tar.gz
qemu-b3b22db69fdefbde00a4499453b76c6b57464711.tar.bz2
Merge remote-tracking branch 'remotes/rth/tags/pull-rth-20160710' into staging
build fix for travis # gpg: Signature made Sun 10 Jul 2016 18:07:02 BST # gpg: using RSA key 0xAD1270CC4DD0279B # gpg: Good signature from "Richard Henderson <rth7680@gmail.com>" # gpg: aka "Richard Henderson <rth@redhat.com>" # gpg: aka "Richard Henderson <rth@twiddle.net>" # Primary key fingerprint: 9CB1 8DDA F8E8 49AD 2AFC 16A4 AD12 70CC 4DD0 279B * remotes/rth/tags/pull-rth-20160710: build: Use $(AS) for optionrom explicitly linux-user: Fix i386 safe-syscall.S Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/host/i386/safe-syscall.inc.S24
1 files changed, 6 insertions, 18 deletions
diff --git a/linux-user/host/i386/safe-syscall.inc.S b/linux-user/host/i386/safe-syscall.inc.S
index 766d0de..9e58fc6 100644
--- a/linux-user/host/i386/safe-syscall.inc.S
+++ b/linux-user/host/i386/safe-syscall.inc.S
@@ -69,7 +69,7 @@ safe_syscall_base:
safe_syscall_start:
/* if signal_pending is non-zero, don't do the call */
mov 4+16(%esp), %eax /* signal_pending */
- cmp $0, (%eax)
+ cmpl $0, (%eax)
jnz 1f
mov 8+16(%esp), %eax /* syscall number */
int $0x80
@@ -77,16 +77,16 @@ safe_syscall_end:
/* code path for having successfully executed the syscall */
pop %ebx
.cfi_remember_state
- .cfi_def_cfa_offset -4
+ .cfi_adjust_cfa_offset -4
.cfi_restore ebx
pop %edi
- .cfi_def_cfa_offset -4
+ .cfi_adjust_cfa_offset -4
.cfi_restore edi
pop %esi
- .cfi_def_cfa_offset -4
+ .cfi_adjust_cfa_offset -4
.cfi_restore esi
pop %ebp
- .cfi_def_cfa_offset -4
+ .cfi_adjust_cfa_offset -4
.cfi_restore ebp
ret
@@ -94,19 +94,7 @@ safe_syscall_end:
/* code path when we didn't execute the syscall */
.cfi_restore_state
mov $-TARGET_ERESTARTSYS, %eax
- pop %ebx
- .cfi_def_cfa_offset -4
- .cfi_restore ebx
- pop %edi
- .cfi_def_cfa_offset -4
- .cfi_restore edi
- pop %esi
- .cfi_def_cfa_offset -4
- .cfi_restore esi
- pop %ebp
- .cfi_def_cfa_offset -4
- .cfi_restore ebp
- ret
+ jmp safe_syscall_end
.cfi_endproc
.size safe_syscall_base, .-safe_syscall_base