diff options
author | Paul Brook <paul@codesourcery.com> | 2010-02-19 16:04:51 +0000 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2010-02-19 16:04:51 +0000 |
commit | 5f2243f3013956b604b92cb614b8e1a8681e3e74 (patch) | |
tree | 0b880441f5601331b9f7af61adbc5bb6c59d4002 | |
parent | 30a8cac1399306963cb3dd65e0421f957d8b4da7 (diff) |
Fix strace or FUTEX_PRIVATE_FLAG
FUTEX_PRIVATE_FLAG is a bit orred with an existing futex op,
not a distinct value.
Signed-off-by: Paul Brook <paul@codesourcery.com>
-rw-r--r-- | linux-user/strace.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/linux-user/strace.c b/linux-user/strace.c index 6090dcc65d..d77053b303 100644 --- a/linux-user/strace.c +++ b/linux-user/strace.c @@ -1252,8 +1252,10 @@ if( cmd == val ) { \ int cmd = (int)tswap32(tflag); #ifdef FUTEX_PRIVATE_FLAG - if (cmd == FUTEX_PRIVATE_FLAG) + if (cmd & FUTEX_PRIVATE_FLAG) { gemu_log("FUTEX_PRIVATE_FLAG|"); + cmd &= ~FUTEX_PRIVATE_FLAG; + } #endif print_op(FUTEX_WAIT) print_op(FUTEX_WAKE) |