Bagus Hanindhito has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/16522
Change subject: 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.
......................................................................
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
---
M src/arch/x86/tlb.cc
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/arch/x86/tlb.cc b/src/arch/x86/tlb.cc
index 589b2b7..829ebce 100644
--- a/src/arch/x86/tlb.cc
+++ b/src/arch/x86/tlb.cc
@@ -455,7 +455,7 @@
TLB::regStats()
{
using namespace Stats;
-
+ BaseTLB::regStats();
rdAccesses
.name(name() + ".rdAccesses")
.desc("TLB accesses on read requests");
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/16522
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I8b62bebc15f896c3136ff4f8253dabbf998f618f
Gerrit-Change-Number: 16522
Gerrit-PatchSet: 1
Gerrit-Owner: Bagus Hanindhito <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev