diff options
Diffstat (limited to 'src/sim/id.cc')
-rw-r--r-- | src/sim/id.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sim/id.cc b/src/sim/id.cc index 3753f83..cdbaba9 100644 --- a/src/sim/id.cc +++ b/src/sim/id.cc @@ -211,8 +211,11 @@ void ID::decode_J_type( } this->status = r1; break; + case RET: + s1 = 1; // link register + [[fallthrough]]; default: - this->status = this->read_guard(*&s1); + this->status = this->read_guard(s1); } } |