summaryrefslogtreecommitdiff
path: root/src/sim/stage.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/sim/stage.cc')
-rw-r--r--src/sim/stage.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sim/stage.cc b/src/sim/stage.cc
index 929a4b9..74a2176 100644
--- a/src/sim/stage.cc
+++ b/src/sim/stage.cc
@@ -45,7 +45,7 @@ InstrDTO *Stage::advance(Response p)
void Stage::set_condition(CC c, bool v)
{
if (v)
- this->gprs[3] = this->gprs[3] & 1 << c;
+ this->gprs[3] = this->gprs[3] | 1 << c;
else
this->gprs[3] = this->gprs[3] & ~(1 << c);
}