summaryrefslogtreecommitdiff
path: root/src/cpu/minor/fetch2.hh
diff options
context:
space:
mode:
authorDavid Guillen Fandos <david.guillen@arm.com>2016-06-16 11:45:11 +0100
committerAndreas Sandberg <andreas.sandberg@arm.com>2017-11-29 10:00:40 +0000
commit2209b35832d63e0367ef5f26e388a162899af21d (patch)
tree93f85aed946d3823d3e8935d621e835b171c8064 /src/cpu/minor/fetch2.hh
parent3f31abfbc84734dab86734c72bdca778575c26e5 (diff)
downloadgem5-2209b35832d63e0367ef5f26e388a162899af21d.tar.xz
cpu-minor: Add missing instruction stats
Change-Id: I811b552989caf3601ac65a128dbee6b7bb405d7f Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> [ Updated to use IsVector instruction flag. ] Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-on: https://gem5-review.googlesource.com/5732 Reviewed-by: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/cpu/minor/fetch2.hh')
-rw-r--r--src/cpu/minor/fetch2.hh9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cpu/minor/fetch2.hh b/src/cpu/minor/fetch2.hh
index 33c683b82..c66fbd8dc 100644
--- a/src/cpu/minor/fetch2.hh
+++ b/src/cpu/minor/fetch2.hh
@@ -165,6 +165,13 @@ class Fetch2 : public Named
std::vector<Fetch2ThreadInfo> fetchInfo;
ThreadID threadPriority;
+ /** Stats */
+ Stats::Scalar intInstructions;
+ Stats::Scalar fpInstructions;
+ Stats::Scalar vecInstructions;
+ Stats::Scalar loadInstructions;
+ Stats::Scalar storeInstructions;
+
protected:
/** Get a piece of data to work on from the inputBuffer, or 0 if there
* is no data. */
@@ -206,6 +213,8 @@ class Fetch2 : public Named
void minorTrace() const;
+ void regStats();
+
/** Is this stage drained? For Fetch2, draining is initiated by
* Execute halting Fetch1 causing Fetch2 to naturally drain.
* Branch predictions are ignored by Fetch1 during halt */