cpu: Don't print the CPU name when a (Break|Panic)PCEvent happens.
authorGabe Black <gabeblack@google.com>
Thu, 10 Oct 2019 03:53:09 +0000 (20:53 -0700)
committerGabe Black <gabeblack@google.com>
Fri, 25 Oct 2019 22:42:31 +0000 (22:42 +0000)
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
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22103
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/cpu/pc_event.cc

index 725c051b7987b967a3cf32b75d3085c1c21aca92..b4017de7a0597b79fa2b3196f1782693fbda86c2 100644 (file)
@@ -127,7 +127,7 @@ BreakPCEvent::BreakPCEvent(PCEventScope *s, const std::string &desc, Addr addr,
 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 @@ PanicPCEvent::PanicPCEvent(PCEventScope *s, const std::string &desc, Addr pc)
 void
 PanicPCEvent::process(ThreadContext *tc)
 {
-    StringWrap name(tc->getCpuPtr()->name() + ".panic_event");
+    StringWrap name("panic_event");
     panic(descr());
 }