From: Christian Borntraeger Date: Mon, 28 May 2012 11:51:50 +0000 (+0000) Subject: Let valgrind check the tls argument if the appropriate flag is set X-Git-Tag: svn/VALGRIND_3_8_0~277 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=554b2fe91b9e1d85b1f29fdc57436e46cd1f2cd8;p=thirdparty%2Fvalgrind.git Let valgrind check the tls argument if the appropriate flag is set git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12591 --- diff --git a/coregrind/m_syswrap/syswrap-s390x-linux.c b/coregrind/m_syswrap/syswrap-s390x-linux.c index 6dd3cc695e..05c7d6de55 100644 --- a/coregrind/m_syswrap/syswrap-s390x-linux.c +++ b/coregrind/m_syswrap/syswrap-s390x-linux.c @@ -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)) {