From cf8f181af044141f754404c1174bc3317a123d93 Mon Sep 17 00:00:00 2001 From: bd Date: Mon, 21 Apr 2025 23:00:25 -0400 Subject: add RET instruction --- src/sim/id.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/sim/id.cc') 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); } } -- cgit v1.2.3