From 8f0fa8ed78bee90cb59b4d06c27c775b21791a25 Mon Sep 17 00:00:00 2001 From: Emily Brickey Date: Tue, 18 Aug 2020 11:28:59 -0700 Subject: [PATCH] arch-mips, arch-power: removed unused stats Change-Id: Ic44943eaefab027d6dc665e531f827202b353093 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/32834 Reviewed-by: Jason Lowe-Power Reviewed-by: Gabe Black Maintainer: Jason Lowe-Power Tested-by: kokoro --- src/arch/mips/tlb.cc | 57 ------------------------------------------- src/arch/mips/tlb.hh | 14 ----------- src/arch/power/tlb.cc | 57 ------------------------------------------- src/arch/power/tlb.hh | 14 ----------- 4 files changed, 142 deletions(-) diff --git a/src/arch/mips/tlb.cc b/src/arch/mips/tlb.cc index 8d2667ccd..49092ef6f 100644 --- a/src/arch/mips/tlb.cc +++ b/src/arch/mips/tlb.cc @@ -217,63 +217,6 @@ TLB::unserialize(CheckpointIn &cp) } } -void -TLB::regStats() -{ - BaseTLB::regStats(); - - read_hits - .name(name() + ".read_hits") - .desc("DTB read hits") - ; - - read_misses - .name(name() + ".read_misses") - .desc("DTB read misses") - ; - - - read_accesses - .name(name() + ".read_accesses") - .desc("DTB read accesses") - ; - - write_hits - .name(name() + ".write_hits") - .desc("DTB write hits") - ; - - write_misses - .name(name() + ".write_misses") - .desc("DTB write misses") - ; - - - write_accesses - .name(name() + ".write_accesses") - .desc("DTB write accesses") - ; - - hits - .name(name() + ".hits") - .desc("DTB hits") - ; - - misses - .name(name() + ".misses") - .desc("DTB misses") - ; - - accesses - .name(name() + ".accesses") - .desc("DTB accesses") - ; - - hits = read_hits + write_hits; - misses = read_misses + write_misses; - accesses = read_accesses + write_accesses; -} - Fault TLB::translateAtomic(const RequestPtr &req, ThreadContext *tc, Mode mode) { diff --git a/src/arch/mips/tlb.hh b/src/arch/mips/tlb.hh index b17f9ec34..2be2ddf71 100644 --- a/src/arch/mips/tlb.hh +++ b/src/arch/mips/tlb.hh @@ -61,18 +61,6 @@ class TLB : public BaseTLB void nextnlu() { if (++nlu >= size) nlu = 0; } MipsISA::PTE *lookup(Addr vpn, uint8_t asn) const; - mutable Stats::Scalar read_hits; - mutable Stats::Scalar read_misses; - mutable Stats::Scalar read_acv; - mutable Stats::Scalar read_accesses; - mutable Stats::Scalar write_hits; - mutable Stats::Scalar write_misses; - mutable Stats::Scalar write_acv; - mutable Stats::Scalar write_accesses; - Stats::Formula hits; - Stats::Formula misses; - Stats::Formula accesses; - public: typedef MipsTLBParams Params; TLB(const Params *p); @@ -104,8 +92,6 @@ class TLB : public BaseTLB void serialize(CheckpointOut &cp) const override; void unserialize(CheckpointIn &cp) override; - void regStats() override; - Fault translateAtomic( const RequestPtr &req, ThreadContext *tc, Mode mode) override; void translateTiming( diff --git a/src/arch/power/tlb.cc b/src/arch/power/tlb.cc index 478814e45..2726ca341 100644 --- a/src/arch/power/tlb.cc +++ b/src/arch/power/tlb.cc @@ -215,63 +215,6 @@ TLB::unserialize(CheckpointIn &cp) } } -void -TLB::regStats() -{ - BaseTLB::regStats(); - - read_hits - .name(name() + ".read_hits") - .desc("DTB read hits") - ; - - read_misses - .name(name() + ".read_misses") - .desc("DTB read misses") - ; - - - read_accesses - .name(name() + ".read_accesses") - .desc("DTB read accesses") - ; - - write_hits - .name(name() + ".write_hits") - .desc("DTB write hits") - ; - - write_misses - .name(name() + ".write_misses") - .desc("DTB write misses") - ; - - - write_accesses - .name(name() + ".write_accesses") - .desc("DTB write accesses") - ; - - hits - .name(name() + ".hits") - .desc("DTB hits") - ; - - misses - .name(name() + ".misses") - .desc("DTB misses") - ; - - accesses - .name(name() + ".accesses") - .desc("DTB accesses") - ; - - hits = read_hits + write_hits; - misses = read_misses + write_misses; - accesses = read_accesses + write_accesses; -} - Fault TLB::translateInst(const RequestPtr &req, ThreadContext *tc) { diff --git a/src/arch/power/tlb.hh b/src/arch/power/tlb.hh index 23359ca9c..c119d9314 100644 --- a/src/arch/power/tlb.hh +++ b/src/arch/power/tlb.hh @@ -110,18 +110,6 @@ class TLB : public BaseTLB PowerISA::PTE *lookup(Addr vpn, uint8_t asn) const; - mutable Stats::Scalar read_hits; - mutable Stats::Scalar read_misses; - mutable Stats::Scalar read_acv; - mutable Stats::Scalar read_accesses; - mutable Stats::Scalar write_hits; - mutable Stats::Scalar write_misses; - mutable Stats::Scalar write_acv; - mutable Stats::Scalar write_accesses; - Stats::Formula hits; - Stats::Formula misses; - Stats::Formula accesses; - public: typedef PowerTLBParams Params; TLB(const Params *p); @@ -170,8 +158,6 @@ class TLB : public BaseTLB // Checkpointing void serialize(CheckpointOut &cp) const override; void unserialize(CheckpointIn &cp) override; - - void regStats() override; }; } // namespace PowerISA -- 2.30.2