|
From: <sv...@va...> - 2012-05-28 11:52:03
|
cborntra 2012-05-28 12:51:50 +0100 (Mon, 28 May 2012)
New Revision: 12591
Log:
Let valgrind check the tls argument if the appropriate flag is set
Modified files:
trunk/coregrind/m_syswrap/syswrap-s390x-linux.c
Modified: trunk/coregrind/m_syswrap/syswrap-s390x-linux.c (+7 -0)
===================================================================
--- trunk/coregrind/m_syswrap/syswrap-s390x-linux.c 2012-05-28 09:56:24 +01:00 (rev 12590)
+++ trunk/coregrind/m_syswrap/syswrap-s390x-linux.c 2012-05-28 12:51:50 +01:00 (rev 12591)
@@ -965,6 +965,13 @@
}
}
+ /* 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)) {
|