]> granicus.if.org Git - strace/commitdiff
Remove stray syscall result reading code on syscall entry for s390
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 12 Feb 2013 14:57:37 +0000 (15:57 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 12 Feb 2013 14:57:37 +0000 (15:57 +0100)
This is a leftover from sysenter/sysexit split.
I can't run-test it, but from code inspection it seems to be correct.

* syscall.c (get_scno): Remove stray syscall result reading for s390[x].

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
syscall.c

index c4e19932644742a8948eb120804e4d8c1163b144..68fab524b08681cba19768dca3d83763c773aa98 100644 (file)
--- a/syscall.c
+++ b/syscall.c
@@ -1330,16 +1330,6 @@ get_scno(struct tcb *tcp)
                return -1;
 #endif
 
-#if defined(SH)
-       /* new syscall ABI returns result in R0 */
-       if (upeek(tcp, 4*REG_REG0, (long *)&r0) < 0)
-               return -1;
-#elif defined(SH64)
-       /* ABI defines result returned in r9 */
-       if (upeek(tcp, REG_GENERAL(9), (long *)&sh64_r9) < 0)
-               return -1;
-#endif
-
        tcp->scno = scno;
        return 1;
 }