summaryrefslogtreecommitdiff
path: root/src/sim/id.cc
diff options
context:
space:
mode:
authorbd <bdunaisky@umass.edu>2025-04-21 20:00:58 +0000
committerGitHub <noreply@github.com>2025-04-21 20:00:58 +0000
commitd933a0405b7a7dff3cf05839ac99d120cafa4d75 (patch)
tree43238110a03ce678f1a68b0b4175ae023527b070 /src/sim/id.cc
parentcdc9d9c6195cf51e2d1ff10ff4f29797d3e51691 (diff)
parent7cad6f05ebed25557fe6a31bfdf6290c72506868 (diff)
Merge pull request #57 from bdunahu/bdunahu
Initialize all pipe objects at once, thread safety,
Diffstat (limited to 'src/sim/id.cc')
-rw-r--r--src/sim/id.cc19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/sim/id.cc b/src/sim/id.cc
index d10d695..3753f83 100644
--- a/src/sim/id.cc
+++ b/src/sim/id.cc
@@ -1,3 +1,20 @@
+// Simulator for the RISC-V[ECTOR] mini-ISA
+// Copyright (C) 2025 Siddarth Suresh
+// Copyright (C) 2025 bdunahu
+
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
#include "id.h"
#include "accessor.h"
#include "instr.h"
@@ -204,7 +221,7 @@ std::vector<int> ID::stage_info()
{
std::vector<int> info;
if (this->curr_instr) {
- info.push_back(this->curr_instr->get_pc());
+ info.push_back(this->curr_instr->is_squashed());
info.push_back(this->curr_instr->get_instr_bits());
}
return info;