mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
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:
parent
f297abe29d
commit
05ee2cb5c9
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user