From f4a5db14436ddbb2820c0abefcb34e5482105a12 Mon Sep 17 00:00:00 2001 From: bd Date: Thu, 8 May 2025 19:44:23 -0400 Subject: Move is_logical_type and is_vector_type to instr.h --- src/ex.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/ex.cc') diff --git a/src/ex.cc b/src/ex.cc index 286c7ba..f0ca5b5 100644 --- a/src/ex.cc +++ b/src/ex.cc @@ -20,6 +20,7 @@ #include "pipe_spec.h" #include "response.h" #include "stage.h" +#include "instr.h" #include // 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; -- cgit v1.2.3