|
From: <sv...@va...> - 2011-09-05 15:37:27
|
Author: florian
Date: 2011-09-05 16:32:39 +0100 (Mon, 05 Sep 2011)
New Revision: 12008
Log:
Avoid hanging on older s390x systems.
See also bugzilla #268623 comment 3.
Modified:
trunk/helgrind/tests/annotate_hbefore.c
Modified: trunk/helgrind/tests/annotate_hbefore.c
===================================================================
--- trunk/helgrind/tests/annotate_hbefore.c 2011-09-05 12:15:16 UTC (rev 12007)
+++ trunk/helgrind/tests/annotate_hbefore.c 2011-09-05 15:32:39 UTC (rev 12008)
@@ -245,8 +245,13 @@
{
UWord w0 = *w;
UWord volatile * wV = w;
- while (*wV == w0)
+ while (*wV == w0) {
+#ifdef VGA_s390x
+ asm volatile ("bcr 15,0\n\t"); /* load barrier */
+#else
;
+#endif
+ }
ANNOTATE_HAPPENS_AFTER(w);
}
|