From ebeb29d1b87c533c1e80e86ceed9ddc40e4d2cb2 Mon Sep 17 00:00:00 2001 From: bd Date: Sun, 30 Mar 2025 19:42:34 -0400 Subject: Add tests for EX --- src/sim/stage.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sim/stage.cc') 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); } -- cgit v1.2.3