Daniel Carvalho has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/43005 )
Change subject: base-stats: Remove SimObject dependency from stats group
......................................................................
base-stats: Remove SimObject dependency from stats group
Remove this circular dependency by casting to Named
instead of SimObject.
Change-Id: I1054562750ba30d3ad4f9e2fbe238fd6fe2d4cb0
Signed-off-by: Daniel R. Carvalho <[email protected]>
---
M src/base/stats/group.cc
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/base/stats/group.cc b/src/base/stats/group.cc
index de546cd..1852c0c 100644
--- a/src/base/stats/group.cc
+++ b/src/base/stats/group.cc
@@ -38,10 +38,10 @@
#include "base/stats/group.hh"
#include "base/logging.hh"
+#include "base/named.hh"
#include "base/stats/info.hh"
#include "base/trace.hh"
#include "debug/Stats.hh"
-#include "sim/sim_object.hh"
namespace Stats {
@@ -67,10 +67,9 @@
for (auto &g : statGroups) {
if (DTRACE(Stats)) {
- M5_VAR_USED const SimObject *so =
- dynamic_cast<const SimObject *>(this);
+ M5_VAR_USED const Named *named = dynamic_cast<const Named
*>(this);
DPRINTF(Stats, "%s: regStats in group %s\n",
- so ? so->name() : "?",
+ named ? named->name() : "?",
g.first);
}
g.second->regStats();
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/43005
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I1054562750ba30d3ad4f9e2fbe238fd6fe2d4cb0
Gerrit-Change-Number: 43005
Gerrit-PatchSet: 1
Gerrit-Owner: Daniel Carvalho <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s