summaryrefslogtreecommitdiff
path: root/src/sim/ex.cc
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-03-31 23:49:13 -0400
committerbd <bdunahu@operationnull.com>2025-03-31 23:49:13 -0400
commit2235e18ad81be4ed7097cd9cab93e35a990ec327 (patch)
tree08f0db7cdc05fc2447f90da2cb7bde92590ba0cb /src/sim/ex.cc
parent723d582d1108975caf071a76c1556a01fb0553d1 (diff)
Partial commit before merge
Diffstat (limited to 'src/sim/ex.cc')
-rw-r--r--src/sim/ex.cc22
1 files changed, 9 insertions, 13 deletions
diff --git a/src/sim/ex.cc b/src/sim/ex.cc
index 95cce8d..83c72d5 100644
--- a/src/sim/ex.cc
+++ b/src/sim/ex.cc
@@ -342,17 +342,13 @@ void EX::advance_helper()
signed int s1, s2, s3;
Mnemonic m;
- // it may be good to ensure we are not doing
- // work that has already been done
- if (this->curr_instr) {
- m = this->curr_instr->get_mnemonic();
- s1 = this->curr_instr->get_s1();
- s2 = this->curr_instr->get_s2();
- s3 = this->curr_instr->get_s3();
-
- this->instr_map[m](s1, s2, s3);
-
- this->curr_instr->set_s1(s1);
- this->status = OK;
- }
+ m = this->curr_instr->get_mnemonic();
+ s1 = this->curr_instr->get_s1();
+ s2 = this->curr_instr->get_s2();
+ s3 = this->curr_instr->get_s3();
+
+ this->instr_map[m](s1, s2, s3);
+
+ this->curr_instr->set_s1(s1);
+ this->status = OK;
}