]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Remove arm64 specific (unused) setup_child () and assign_guest_tls ().
authorMark Wielaard <mark@klomp.org>
Sat, 18 Feb 2017 21:16:05 +0000 (21:16 +0000)
committerMark Wielaard <mark@klomp.org>
Sat, 18 Feb 2017 21:16:05 +0000 (21:16 +0000)
valgrind svn r16186 (which fixed bug #342040 and #373192) introduced a
generic linux way of handling setup_child and assign_guest_tls. So there
is no need anymore for arch specific implementations. And gcc complained
they were unused.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16249

coregrind/m_syswrap/syswrap-arm64-linux.c

index 60482d7c7616d2309f71996946f67ab6521b1ae1..2bb4cd247a87c10f981019e9fa0cd141d6fb263f 100644 (file)
@@ -185,8 +185,6 @@ asm(
 #undef __NR_EXIT
 
 // forward declaration
-static void setup_child ( ThreadArchState*, ThreadArchState* );
-static void assign_guest_tls(ThreadId ctid, Addr tlsptr);
 //ZZ static SysRes sys_set_tls ( ThreadId tid, Addr tlsptr );
             
 /* ---------------------------------------------------------------------
@@ -199,19 +197,6 @@ void VG_(cleanup_thread) ( ThreadArchState* arch )
 {
 }  
 
-void setup_child ( /*OUT*/ ThreadArchState *child,
-                   /*IN*/  ThreadArchState *parent )
-{
-   child->vex = parent->vex;
-   child->vex_shadow1 = parent->vex_shadow1;
-   child->vex_shadow2 = parent->vex_shadow2;
-}
-
-static void assign_guest_tls(ThreadId tid, Addr tlsptr)
-{
-   VG_(threads)[tid].arch.vex.guest_TPIDR_EL0 = tlsptr;
-}
-
 //ZZ /* Assigns tlsptr to the guest TPIDRURO.
 //ZZ    If needed for the specific hardware, really executes
 //ZZ    the set_tls syscall.