Let valgrind check the tls argument if the appropriate flag is set
authorcborntra <cborntra@a5019735-40e9-0310-863c-91ae7b9d1cf9>
Mon, 28 May 2012 11:51:50 +0000 (11:51 +0000)
committercborntra <cborntra@a5019735-40e9-0310-863c-91ae7b9d1cf9>
Mon, 28 May 2012 11:51:50 +0000 (11:51 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12591 a5019735-40e9-0310-863c-91ae7b9d1cf9

coregrind/m_syswrap/syswrap-s390x-linux.c

index 6dd3cc695e1600526201eafd270cb50e0738cb58..05c7d6de5538f1bdfa1ab945074efff1ac546cc1 100644 (file)
@@ -965,6 +965,13 @@ PRE(sys_clone)
       }
    }
 
+   /* The kernel simply copies reg6 (ARG5) into AR0 and AR1, no checks */
+   if (ARG2 & VKI_CLONE_SETTLS) {
+      if (VG_(tdict).track_pre_reg_read) {
+         PRA5("clone", Addr, tlsinfo);
+      }
+   }
+
    cloneflags = ARG2;
 
    if (!ML_(client_signal_OK)(ARG2 & VKI_CSIGNAL)) {