Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/22103 )
Change subject: cpu: Don't print the CPU name when a (Break|Panic)PCEvent
happens.
......................................................................
cpu: Don't print the CPU name when a (Break|Panic)PCEvent happens.
This requires reaching into the threadcontext to access the CPU
pointer, and also isn't all that useful since it's more important what
event happened, not what CPU happened to be running the code at that
time.
Change-Id: I368707c804dff9bd349f3261bdcd08be55c5d04a
---
M src/cpu/pc_event.cc
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/cpu/pc_event.cc b/src/cpu/pc_event.cc
index 725c051..b4017de 100644
--- a/src/cpu/pc_event.cc
+++ b/src/cpu/pc_event.cc
@@ -127,7 +127,7 @@
void
BreakPCEvent::process(ThreadContext *tc)
{
- StringWrap name(tc->getCpuPtr()->name() + ".break_event");
+ StringWrap name("break_event");
DPRINTFN("break event %s triggered\n", descr());
Debug::breakpoint();
if (remove)
@@ -142,6 +142,6 @@
void
PanicPCEvent::process(ThreadContext *tc)
{
- StringWrap name(tc->getCpuPtr()->name() + ".panic_event");
+ StringWrap name("panic_event");
panic(descr());
}
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/22103
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: I368707c804dff9bd349f3261bdcd08be55c5d04a
Gerrit-Change-Number: 22103
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <gabebl...@google.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev