aboutsummaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2010-02-19 16:04:51 +0000
committerPaul Brook <paul@codesourcery.com>2010-02-19 16:04:51 +0000
commit5f2243f3013956b604b92cb614b8e1a8681e3e74 (patch)
tree0b880441f5601331b9f7af61adbc5bb6c59d4002 /linux-user
parent30a8cac1399306963cb3dd65e0421f957d8b4da7 (diff)
downloadqemu-5f2243f3013956b604b92cb614b8e1a8681e3e74.zip
qemu-5f2243f3013956b604b92cb614b8e1a8681e3e74.tar.gz
qemu-5f2243f3013956b604b92cb614b8e1a8681e3e74.tar.bz2
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>
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/strace.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux-user/strace.c b/linux-user/strace.c
index 6090dcc..d77053b 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)