Blame SOURCES/ltrace-0.7.91-ppc64le-scv.patch

244288
diff -rup a/sysdeps/linux-gnu/ppc/trace.c b/sysdeps/linux-gnu/ppc/trace.c
244288
--- a/sysdeps/linux-gnu/ppc/trace.c	2021-02-08 14:35:16.876494095 -0500
244288
+++ b/sysdeps/linux-gnu/ppc/trace.c	2021-02-08 15:05:59.468107311 -0500
244288
@@ -57,6 +57,7 @@ get_arch_dep(struct process *proc)
244288
 }
244288
 
244288
 #define SYSCALL_INSN   0x44000002
244288
+#define SYSCALL2_INSN  0x44000001
244288
 
244288
 /* Returns 1 if syscall, 2 if sysret, 0 otherwise. */
244288
 int
244288
@@ -75,7 +76,7 @@ syscall_p(struct process *proc, int stat
244288
 				0);
244288
 #endif
244288
 
244288
-		if (insn == SYSCALL_INSN) {
244288
+		if (insn == SYSCALL_INSN || insn == SYSCALL2_INSN) {
244288
 			*sysnum =
244288
 			    (int)ptrace(PTRACE_PEEKUSER, proc->pid,
244288
 					sizeof(long) * PT_R0, 0);