summaryrefslogtreecommitdiff
path: root/src/sim
diff options
context:
space:
mode:
authorCiro Santilli <ciro.santilli@arm.com>2019-10-07 11:47:19 +0100
committerCiro Santilli <ciro.santilli@arm.com>2019-10-24 12:59:42 +0000
commit35b95c78ef45841af7a683a7582062384829ece9 (patch)
tree27349649300e2fa72a0d0eeb95f9d92bc066b9d6 /src/sim
parentca1d09608e52f6ca8db8c2288b292731c4cee739 (diff)
downloadgem5-35b95c78ef45841af7a683a7582062384829ece9.tar.xz
sim-se: fix futexFunc TGT_FUTEX_WAIT always selects bitset
Change-Id: I3e2bd1dd34d7cc00b2685547ab74b56bd8126128 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/21605 Reviewed-by: Brandon Potter <Brandon.Potter@amd.com> Maintainer: Brandon Potter <Brandon.Potter@amd.com> Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src/sim')
-rw-r--r--src/sim/syscall_emul.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sim/syscall_emul.hh b/src/sim/syscall_emul.hh
index 91ddb2567..66ca28f82 100644
--- a/src/sim/syscall_emul.hh
+++ b/src/sim/syscall_emul.hh
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2012-2013, 2015 ARM Limited
+ * Copyright (c) 2012-2013, 2015, 2019 ARM Limited
* Copyright (c) 2015 Advanced Micro Devices, Inc.
* All rights reserved
*
@@ -368,7 +368,7 @@ futexFunc(SyscallDesc *desc, int callnum, ThreadContext *tc)
if (val != mem_val)
return -OS::TGT_EWOULDBLOCK;
- if (OS::TGT_FUTEX_WAIT) {
+ if (OS::TGT_FUTEX_WAIT == op) {
futex_map.suspend(uaddr, process->tgid(), tc);
} else {
futex_map.suspend_bitset(uaddr, process->tgid(), tc, val3);