Remove hacks for old kernels for architectures which require new kernels
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 12 Feb 2013 15:07:54 +0000 (16:07 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 12 Feb 2013 15:07:54 +0000 (16:07 +0100)
* util.c (change_syscall): For MICROBLAZE, replace code
with dummy "return 0" and a comment explaining why that is ok
for this architecture.

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

diff --git a/util.c b/util.c
index fa5960419803c6f81870be25a267255a01597515..f699cb229217fc41c0776020722d7176b071aca8 100644 (file)
--- a/util.c
+++ b/util.c
@@ -1293,8 +1293,8 @@ change_syscall(struct tcb *tcp, arg_setup_state *state, int new)
        /* Tilera CPUs are only supported since about linux-2.6.34 */
        return 0;
 #elif defined(MICROBLAZE)
-       if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(PT_GPR(0)), new) < 0)
-               return -1;
+       /* setbpt/clearbpt never used: */
+       /* microblaze is only supported since about linux-2.6.30 */
        return 0;
 #else
 #warning Do not know how to handle change_syscall for this architecture