]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
mips64: use generic Linux wrapper for sys_unshare
authorPetar Jovanovic <mips32r2@gmail.com>
Wed, 27 Nov 2019 13:32:57 +0000 (13:32 +0000)
committerPetar Jovanovic <mips32r2@gmail.com>
Wed, 27 Nov 2019 13:32:57 +0000 (13:32 +0000)
No need for mips64-specific Linux wrappers for sys_unshare.

coregrind/m_syswrap/syswrap-mips64-linux.c

index d0bb3cdf175d87e8cba7151b638970395f51e9d1..b1f548a5faee84897859cf7e8a7782554916a987 100644 (file)
@@ -226,7 +226,6 @@ DECL_TEMPLATE (mips_linux, sys_sethostname);
 DECL_TEMPLATE (mips_linux, sys_reboot);
 DECL_TEMPLATE (mips_linux, sys_cacheflush);
 DECL_TEMPLATE (mips_linux, sys_sched_rr_get_interval);
-DECL_TEMPLATE (mips_linux, sys_unshare);
 DECL_TEMPLATE (mips_linux, sys_prctl);
 DECL_TEMPLATE (mips_linux, sys_ptrace);
 DECL_TEMPLATE (mips_linux, sys_mmap);
@@ -242,12 +241,6 @@ PRE(sys_vmsplice)
                  vki_size_t, len, int, flags);
 }
 
-PRE(sys_unshare)
-{
-   PRINT("sys_unshare ( %" FMT_REGWORD "u )", ARG1);
-   PRE_REG_READ1(long, "sys_unshare", unsigned long, flags);
-}
-
 PRE(sys_sched_rr_get_interval)
 {
    PRINT("sys_sched_rr_get_interval ( %ld, %#" FMT_REGWORD "x)", SARG1, ARG2);
@@ -784,7 +777,7 @@ static SyscallTableEntry syscall_main_table[] = {
    LINX_ (__NR_faccessat, sys_faccessat),
    LINXY (__NR_pselect6, sys_pselect6),
    LINXY (__NR_ppoll, sys_ppoll),
-   PLAX_ (__NR_unshare, sys_unshare),
+   LINX_ (__NR_unshare, sys_unshare),
    LINX_ (__NR_splice, sys_splice),
    LINX_ (__NR_sync_file_range, sys_sync_file_range),
    LINX_ (__NR_tee, sys_tee),