diff options
author | bd <bdunahu@operationnull.com> | 2025-04-21 23:00:25 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-04-21 23:00:25 -0400 |
commit | cf8f181af044141f754404c1174bc3317a123d93 (patch) | |
tree | 866234fe4b367959f566e947c1395ea317559500 /src/sim/id.cc | |
parent | 98b9786ccab6fdee37a779fdd55b58176abf12d9 (diff) |
add RET instruction
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); } } |