From 79a68cabb033530871a1dab259149480584b2586 Mon Sep 17 00:00:00 2001 From: bd Date: Sun, 11 May 2025 13:08:16 -0400 Subject: Add I_VECT field type for SRDL, SRDS, with two vector reg 1 general --- inc/ex.h | 2 +- inc/instr.h | 1 + inc/instrDTO.h | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'inc') diff --git a/inc/ex.h b/inc/ex.h index 30a6639..19b35d4 100644 --- a/inc/ex.h +++ b/inc/ex.h @@ -96,7 +96,7 @@ class EX : public Stage * @param the mnemonic * @param the vector length register */ - void handle_i_vector_operations(signed int &s1, signed int s2, Mnemonic m); + void handle_s_vector_operations(signed int &s1, signed int s2, Mnemonic m); /** * Wrapper for division functions, which detects HALT instructinos (division * by 0). diff --git a/inc/instr.h b/inc/instr.h index caceb39..a083699 100644 --- a/inc/instr.h +++ b/inc/instr.h @@ -64,6 +64,7 @@ enum Mnemonic { enum FieldType { SI_INT, R_VECT, + S_VECT, }; namespace instr diff --git a/inc/instrDTO.h b/inc/instrDTO.h index ccc6ed9..5d6a4eb 100644 --- a/inc/instrDTO.h +++ b/inc/instrDTO.h @@ -35,7 +35,7 @@ struct V_TYPE { }; struct VI_TYPE { - signed int slot_one; + std::array slot_one; signed int slot_two; std::array slot_three; }; @@ -68,7 +68,7 @@ struct InstrDTO { union { struct U_INT_TYPE integer; struct V_TYPE vector; - struct VI_TYPE i_vector; + struct VI_TYPE s_vector; } operands; }; -- cgit v1.2.3