diff options
-rw-r--r-- | src/mem/cache/mshr.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mem/cache/mshr.cc b/src/mem/cache/mshr.cc index 71cfca7bd..86b5a4c08 100644 --- a/src/mem/cache/mshr.cc +++ b/src/mem/cache/mshr.cc @@ -518,11 +518,13 @@ MSHR::print(std::ostream &os, int verbosity, const std::string &prefix) const _isUncacheable ? "Unc" : "", inService ? "InSvc" : "", downstreamPending ? "DwnPend" : "", - hasPostInvalidate() ? "PostInv" : "", - hasPostDowngrade() ? "PostDowngr" : ""); + postInvalidate ? "PostInv" : "", + postDowngrade ? "PostDowngr" : ""); - ccprintf(os, "%s Targets:\n", prefix); - targets.print(os, verbosity, prefix + " "); + if (!targets.empty()) { + ccprintf(os, "%s Targets:\n", prefix); + targets.print(os, verbosity, prefix + " "); + } if (!deferredTargets.empty()) { ccprintf(os, "%s Deferred Targets:\n", prefix); deferredTargets.print(os, verbosity, prefix + " "); |