summaryrefslogtreecommitdiff
path: root/src/sim/mm.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/sim/mm.cc')
-rw-r--r--src/sim/mm.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sim/mm.cc b/src/sim/mm.cc
index c83ae7d..07a362b 100644
--- a/src/sim/mm.cc
+++ b/src/sim/mm.cc
@@ -15,7 +15,7 @@ void MM::advance_helper()
this->status = this->storage->read_word(
this->id, this->curr_instr->get_s1(), data);
if (this->status == OK) {
- this->curr_instr->set_s2(data);
+ this->curr_instr->set_s1(data);
} else
this->status = STALLED;
break;