diff options
author | Siddarth Suresh <155843085+SiddarthSuresh98@users.noreply.github.com> | 2025-04-22 15:23:50 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-22 15:23:50 -0400 |
commit | 3d0133c2f793e82d7519d8e2c5023114cd0f0eab (patch) | |
tree | b262ededf7e993090d7a860b76ca528b5651c3c6 /src/sim/id.cc | |
parent | 1250359dfcbcad18c0a1078290f95479aa23e26a (diff) | |
parent | 86a6253a2fb2d016a63e57d6a5e5461df87668e5 (diff) |
Merge pull request #67 from bdunahu/bdunahu
add RET instruction, JAL ob1 error (full subroutine support), condition codes for everything but shifts
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); } } |