From: Gabe Black Date: Thu, 10 Oct 2019 03:53:09 +0000 (-0700) Subject: cpu: Don't print the CPU name when a (Break|Panic)PCEvent happens. X-Git-Tag: v19.0.0.0~407 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1ded8d6d9f829774c16c50c56f1538d4b7711f09;p=gem5.git 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 --- 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()); }