summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2008-09-26 08:18:56 -0700
committerNathan Binkert <nate@binkert.org>2008-09-26 08:18:56 -0700
commitabca171e244b27d1c44a9bcdedbe231bdc342cbb (patch)
tree062d0131ec6f4561df4fe9a2d494632520384f3b /src/arch
parent6798aa14ed68b2c7a7ad7f09e6223d5d28f0e56e (diff)
downloadgem5-abca171e244b27d1c44a9bcdedbe231bdc342cbb.tar.xz
Use logical operator instead of bitwise operator for correctness.
Diffstat (limited to 'src/arch')
-rwxr-xr-xsrc/arch/mips/mt.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/mips/mt.hh b/src/arch/mips/mt.hh
index 6765c27a9..20658df28 100755
--- a/src/arch/mips/mt.hh
+++ b/src/arch/mips/mt.hh
@@ -220,7 +220,7 @@ yieldThread(TC *tc, Fault &fault, int src_reg, uint32_t yield_mask)
warn("%i: Deactivating Hardware Thread Context #%i", curTick, tc->getThreadNum());
}
} else if (src_reg > 0) {
- if (src_reg & !yield_mask != 0) {
+ if (src_reg && !yield_mask != 0) {
unsigned vpe_control = tc->readMiscReg(VPEControl);
tc->setMiscReg(VPEControl, insertBits(vpe_control, VPEC_EXCPT_HI, VPEC_EXCPT_LO, 2));
fault = new ThreadFault();