summaryrefslogtreecommitdiff
path: root/src/systemc/utils/report.cc
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-10-06 20:09:42 -0700
committerGabe Black <gabeblack@google.com>2018-10-16 01:06:54 +0000
commit5220003e388b75d45a57f3db83dd00212e3a4118 (patch)
treeb0b2031ba9dc34c632a22f343806b723a5e743bb /src/systemc/utils/report.cc
parent7eb6ad4aaa3afb8a5625a4515cbcfd141d5ce45b (diff)
downloadgem5-5220003e388b75d45a57f3db83dd00212e3a4118.tar.xz
systemc: Handle integer based IDs like Accellera does.
This is actually not consistent with how it was handled in 2.0.1 which is supposedly what this is supposed to be backwards compatible with, in that in the earlier version on info and warning messages were suppressed. This is exposed by one of the tests, utils/sc_report/test01, which suppresses an integer ID and then reports an error with it. The "golden" output shows the message supressed, but the actual implementation makes no such distinction. This implementation duplicates Accelleras for now, but a future change will make it consistent with the old implementation so the test will pass. Change-Id: I8f959321151e2bb60b94000594f30531b80e2684 Reviewed-on: https://gem5-review.googlesource.com/c/13319 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc/utils/report.cc')
-rw-r--r--src/systemc/utils/report.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/systemc/utils/report.cc b/src/systemc/utils/report.cc
index 413726eb7..9c26edea3 100644
--- a/src/systemc/utils/report.cc
+++ b/src/systemc/utils/report.cc
@@ -48,6 +48,7 @@ ReportSevInfo reportSevInfos[sc_core::SC_MAX_SEVERITY] =
};
std::map<std::string, ReportMsgInfo> reportMsgInfoMap;
+std::map<int, std::string> reportIdToMsgMap;
int reportVerbosityLevel = sc_core::SC_MEDIUM;
@@ -60,4 +61,6 @@ sc_core::sc_report_handler_proc reportHandlerProc =
std::unique_ptr<sc_core::sc_report> globalReportCache;
+bool reportWarningsAsErrors = false;
+
} // namespace sc_gem5