From 554b2fe91b9e1d85b1f29fdc57436e46cd1f2cd8 Mon Sep 17 00:00:00 2001 From: Christian Borntraeger Date: Mon, 28 May 2012 11:51:50 +0000 Subject: [PATCH] Let valgrind check the tls argument if the appropriate flag is set git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12591 --- coregrind/m_syswrap/syswrap-s390x-linux.c | 7 +++++++ 1 file changed, 7 insertions(+) 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)) { -- 2.47.2