summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2019-10-09 20:53:09 -0700
committerGabe Black <gabeblack@google.com>2019-10-25 22:42:31 +0000
commit1ded8d6d9f829774c16c50c56f1538d4b7711f09 (patch)
treec46bbd40fc5c108ff2b9b00cb61a0189598f5681 /src
parent21b58d19ad2996d34da9d3143f47059636c6cd84 (diff)
downloadgem5-1ded8d6d9f829774c16c50c56f1538d4b7711f09.tar.xz
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 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>
Diffstat (limited to 'src')
-rw-r--r--src/cpu/pc_event.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cpu/pc_event.cc b/src/cpu/pc_event.cc
index 725c051b7..b4017de7a 100644
--- a/src/cpu/pc_event.cc
+++ b/src/cpu/pc_event.cc
@@ -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());
}