summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorBagus Hanindhito <hanindhito@bagus.my.id>2019-02-19 17:52:23 -0600
committerBagus Hanindhito <hanindhito@bagus.my.id>2019-02-20 01:04:26 +0000
commitcb7fe24ab7effe526a03a51fc34f6cce8056d04f (patch)
tree17ab9c005cc6f13c10aa15870ccd9365598ba2f4 /src/arch
parent598991fda1ee852ef7fa38917e3e2198811fe4f9 (diff)
downloadgem5-cb7fe24ab7effe526a03a51fc34f6cce8056d04f.tar.xz
x86: Call the base class's regStats in X86ISA::TLB
When I try to build x86 architecture and run the se.py sample script with helloworld example, there is a panic warning stated "Not all stats have been initialized. You may need to add <ParentClass>::regStats() to a new SimObject's regStats() function." I see that in x86 tlb.cc, there is no initialization in regStats() function that causes memory allocation error in some machine which make gem5 exit abnormally. I add the BaseTLB::regStats(); on TLB::regStats() method and can solve the problem Change-Id: I8b62bebc15f896c3136ff4f8253dabbf998f618f Reviewed-on: https://gem5-review.googlesource.com/c/16522 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/x86/tlb.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/tlb.cc b/src/arch/x86/tlb.cc
index 589b2b7eb..829ebce00 100644
--- a/src/arch/x86/tlb.cc
+++ b/src/arch/x86/tlb.cc
@@ -455,7 +455,7 @@ void
TLB::regStats()
{
using namespace Stats;
-
+ BaseTLB::regStats();
rdAccesses
.name(name() + ".rdAccesses")
.desc("TLB accesses on read requests");