34a35
> #include "systemc/utils/report.hh"
90,91c91,95
< warn("%s not implemented.\n", __PRETTY_FUNCTION__);
< return "";
---
> auto it = sc_gem5::reportIdToMsgMap.find(id);
> if (it == sc_gem5::reportIdToMsgMap.end())
> return "unknown id";
> else
> return it->second.c_str();
97,98c101,105
< warn("%s not implemented.\n", __PRETTY_FUNCTION__);
< return false;
---
> auto it = sc_gem5::reportIdToMsgMap.find(id);
> if (it == sc_gem5::reportIdToMsgMap.end())
> return false;
>
> return sc_gem5::reportMsgInfoMap[it->second].actions == SC_DO_NOTHING;
102c109
< sc_report::make_warnings_errors(bool)
---
> sc_report::make_warnings_errors(bool val)
104c111
< warn("%s not implemented.\n", __PRETTY_FUNCTION__);
---
> sc_gem5::reportWarningsAsErrors = val;
110c117,132
< warn("%s not implemented.\n", __PRETTY_FUNCTION__);
---
> if (id < 0) {
> SC_REPORT_ERROR("(E800) register_id failed", "invalid report id");
> return;
> }
> if (!msg) {
> SC_REPORT_ERROR("(E800) register_id failed", "invalid report message");
> return;
> }
> auto p = sc_gem5::reportIdToMsgMap.insert(
> std::pair<int, std::string>(id, msg));
> if (!p.second) {
> SC_REPORT_ERROR("(E800) register_id failed",
> "report id already exists");
> } else {
> sc_gem5::reportMsgInfoMap[msg].id = id;
> }
114c136
< sc_report::suppress_id(int id, bool)
---
> sc_report::suppress_id(int id, bool suppress)
116c138,145
< warn("%s not implemented.\n", __PRETTY_FUNCTION__);
---
> auto it = sc_gem5::reportIdToMsgMap.find(id);
> if (it == sc_gem5::reportIdToMsgMap.end())
> return;
>
> if (suppress)
> sc_gem5::reportMsgInfoMap[it->second].actions = SC_DO_NOTHING;
> else
> sc_gem5::reportMsgInfoMap[it->second].actions = SC_UNSPECIFIED;
120c149
< sc_report::suppress_infos(bool)
---
> sc_report::suppress_infos(bool suppress)
122c151,154
< warn("%s not implemented.\n", __PRETTY_FUNCTION__);
---
> if (suppress)
> sc_gem5::reportSevInfos[SC_INFO].actions = SC_DO_NOTHING;
> else
> sc_gem5::reportSevInfos[SC_INFO].actions = SC_DEFAULT_INFO_ACTIONS;
126c158
< sc_report::suppress_warnings(bool)
---
> sc_report::suppress_warnings(bool suppress)
128c160,165
< warn("%s not implemented.\n", __PRETTY_FUNCTION__);
---
> if (suppress) {
> sc_gem5::reportSevInfos[SC_WARNING].actions = SC_DO_NOTHING;
> } else {
> sc_gem5::reportSevInfos[SC_WARNING].actions =
> SC_DEFAULT_WARNING_ACTIONS;
> }