diff options
author | bd <bdunahu@operationnull.com> | 2025-05-08 19:44:23 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-05-08 19:44:23 -0400 |
commit | f4a5db14436ddbb2820c0abefcb34e5482105a12 (patch) | |
tree | 2b716eba64b247f03e2454f1d62d15643f203a1f /src/ex.cc | |
parent | c7132dbc9c38ff766053bd9a0b72c68b23cd08d2 (diff) |
Move is_logical_type and is_vector_type to instr.h
Diffstat (limited to 'src/ex.cc')
-rw-r--r-- | src/ex.cc | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -20,6 +20,7 @@ #include "pipe_spec.h" #include "response.h" #include "stage.h" +#include "instr.h" #include <unordered_map> // Switch statements for each instruction @@ -37,7 +38,7 @@ void EX::advance_helper() m = this->curr_instr->mnemonic; pc = this->curr_instr->slot_B; - if (this->is_vector_type(m)) { + if (instr::is_vector_type(m)) { if (this->curr_instr->mnemonic != LOADV && this->curr_instr->mnemonic != STOREV) { v1 = this->curr_instr->operands.vector.slot_one; @@ -60,7 +61,7 @@ void EX::advance_helper() s3 = this->curr_instr->operands.integer.slot_three; } - if (this->is_logical(m)) { + if (instr::is_logical_type(m)) { this->set_condition(OF, false); this->set_condition(UF, false); } @@ -235,7 +236,7 @@ void EX::advance_helper() case NOP: break; } - if (this->is_vector_type(m)) { + if (instr::is_vector_type(m)) { if (this->curr_instr->mnemonic != LOADV && this->curr_instr->mnemonic != STOREV) { this->curr_instr->operands.vector.slot_one = v1; |