From c9d4b54150b67e1701a920719ba2c7c03d897d27 Mon Sep 17 00:00:00 2001 From: bd Date: Sun, 11 May 2025 19:40:47 -0400 Subject: Stride load, stride store --- src/id.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/id.cc') diff --git a/src/id.cc b/src/id.cc index 12f509f..9547486 100644 --- a/src/id.cc +++ b/src/id.cc @@ -135,10 +135,16 @@ void ID::decode_R_type(signed int &s1) this->write_guard>(s3); break; case SRDL: - case SRDS: this->curr_instr->operands.s_vector.slot_three = this->write_guard>(s3); break; + case SRDS: + r1 = this->read_guard>( + s3, this->curr_instr->operands.s_vector.slot_three); + if (r1 != OK) { + this->status = STALLED; + } + break; default: this->curr_instr->operands.integer.slot_three = this->write_guard(s3); -- cgit v1.2.3