From 1ded8d6d9f829774c16c50c56f1538d4b7711f09 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 9 Oct 2019 20:53:09 -0700 Subject: [PATCH] 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 Maintainer: Gabe Black Tested-by: kokoro --- src/cpu/pc_event.cc | 4 ++-- 1 file 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()); } -- 2.30.2