Deleted Added
sdiff udiff text old ( 13316:0423798f1a05 ) new ( 13323:1cfcaaf573b9 )
full compact
1/*
2 * Copyright 2018 Google, Inc.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met: redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer;
8 * redistributions in binary form must reproduce the above copyright

--- 15 unchanged lines hidden (view full) ---

24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 *
27 * Authors: Gabe Black
28 */
29
30#include "systemc/utils/report.hh"
31
32namespace sc_gem5
33{
34
35const char *reportSeverityNames[] = {
36 [sc_core::SC_INFO] = "Info",
37 [sc_core::SC_WARNING] = "Warning",
38 [sc_core::SC_ERROR] = "Error",
39 [sc_core::SC_FATAL] = "Fatal"

--- 18 unchanged lines hidden (view full) ---

58
59sc_core::sc_report_handler_proc reportHandlerProc =
60 &sc_core::sc_report_handler::default_handler;
61
62std::unique_ptr<sc_core::sc_report> globalReportCache;
63
64bool reportWarningsAsErrors = false;
65
66DefaultReportMessages::DefaultReportMessages(
67 std::initializer_list<std::pair<int, const char *>> msgs)
68{
69 for (auto &p: msgs)
70 sc_core::sc_report::register_id(p.first, p.second);
71}
72
73} // namespace sc_gem5