Avoid hanging on older s390x systems.

See also bugzilla #268623 comment 3.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12008
This commit is contained in:
Florian Krohm 2011-09-05 15:32:39 +00:00
parent f297abe29d
commit 05ee2cb5c9

View File

@ -245,8 +245,13 @@ void do_wait ( UWord* w )
{
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);
}