diff options
author | bd <bdunahu@operationnull.com> | 2025-04-25 21:12:58 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-04-25 21:12:58 -0400 |
commit | a3528b83dd10fa9cdf7ef5635f615c1b295f3f4c (patch) | |
tree | d4b3836a433dcb4e5a9615a8a1477b2901358451 /src | |
parent | 9ef2928aefd0983c7b3b04023c0b958b86dd77ff (diff) |
Pass full DTO to GUI
Diffstat (limited to 'src')
-rw-r--r-- | src/id.cc | 10 | ||||
-rw-r--r-- | src/if.cc | 9 | ||||
-rw-r--r-- | src/stage.cc | 13 |
3 files changed, 1 insertions, 31 deletions
@@ -211,13 +211,3 @@ void ID::decode_J_type( } } - -std::vector<int> ID::stage_info() -{ - std::vector<int> info; - if (this->curr_instr) { - info.push_back(this->curr_instr->is_squashed); - info.push_back(this->curr_instr->slot_A); - } - return info; -} @@ -37,15 +37,6 @@ InstrDTO *IF::advance(Response p) return r; } -std::vector<int> IF::stage_info() { - std::vector<int> info; - if(this->curr_instr){ - info.push_back(this->curr_instr->is_squashed); - info.push_back(this->curr_instr->slot_A); - } - return info; -} - void IF::advance_helper() { Response r; diff --git a/src/stage.cc b/src/stage.cc index 55756b6..4efe2fe 100644 --- a/src/stage.cc +++ b/src/stage.cc @@ -65,18 +65,7 @@ InstrDTO *Stage::advance(Response p) return r; } -std::vector<int> Stage::stage_info() -{ - std::vector<int> info; - if (this->curr_instr) { - info.push_back(this->curr_instr->mnemonic); - info.push_back(this->curr_instr->is_squashed); - info.push_back(this->curr_instr->operands.integer.slot_one); - info.push_back(this->curr_instr->operands.integer.slot_two); - info.push_back(this->curr_instr->operands.integer.slot_three); - } - return info; -} +InstrDTO *Stage::get_instr() { return this->curr_instr; } void Stage::set_condition(CC c, bool v) { |