From bb92a08e8c222d65019f7b902282264ae977be6e Mon Sep 17 00:00:00 2001 From: Knute Lingaard Date: Wed, 31 Jan 2024 13:58:20 -0600 Subject: [PATCH] Added COMPLETE pevent --- core/ExecutePipe.cpp | 1 + core/ExecutePipe.hpp | 6 ++++++ core/ROB.hpp | 1 - 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/core/ExecutePipe.cpp b/core/ExecutePipe.cpp index 6416d82f..5cc856f6 100644 --- a/core/ExecutePipe.cpp +++ b/core/ExecutePipe.cpp @@ -216,6 +216,7 @@ namespace olympia void ExecutePipe::completeInst_(const InstPtr & ex_inst) { ex_inst->setStatus(Inst::Status::COMPLETED); + complete_event_.collect(*ex_inst); ILOG("Completing inst: " << ex_inst); } diff --git a/core/ExecutePipe.hpp b/core/ExecutePipe.hpp index dcc5ee2d..2567e630 100644 --- a/core/ExecutePipe.hpp +++ b/core/ExecutePipe.hpp @@ -22,6 +22,7 @@ #include "sparta/simulation/ResourceFactory.hpp" #include "sparta/collection/Collectable.hpp" #include "sparta/resources/Scoreboard.hpp" +#include "sparta/pevents/PeventCollector.hpp" #include "Inst.hpp" #include "CoreTypes.hpp" @@ -111,6 +112,11 @@ namespace olympia // A pipeline collector sparta::collection::Collectable collected_inst_; + // For correlation activities + sparta::pevents::PeventCollector complete_event_{"COMPLETE", + getContainer(), + getClock()}; + // Counter sparta::Counter total_insts_issued_{ getStatisticSet(), "total_insts_issued", diff --git a/core/ROB.hpp b/core/ROB.hpp index 17a9aa32..2e09eebb 100644 --- a/core/ROB.hpp +++ b/core/ROB.hpp @@ -18,7 +18,6 @@ #include "CoreTypes.hpp" #include "InstGroup.hpp" #include "FlushManager.hpp" -//#include "CorePEvents.hpp" namespace olympia {