Deleted Added
sdiff udiff text old ( 13313:306a97d3b040 ) new ( 13314:d1f53683ab94 )
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

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

97
98bool
99sc_report::is_suppressed(int id)
100{
101 auto it = sc_gem5::reportIdToMsgMap.find(id);
102 if (it == sc_gem5::reportIdToMsgMap.end())
103 return false;
104
105 return sc_gem5::reportMsgInfoMap[it->second].actions == SC_DO_NOTHING;
106}
107
108void
109sc_report::make_warnings_errors(bool val)
110{
111 sc_gem5::reportWarningsAsErrors = val;
112}
113

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

134
135void
136sc_report::suppress_id(int id, bool suppress)
137{
138 auto it = sc_gem5::reportIdToMsgMap.find(id);
139 if (it == sc_gem5::reportIdToMsgMap.end())
140 return;
141
142 if (suppress)
143 sc_gem5::reportMsgInfoMap[it->second].actions = SC_DO_NOTHING;
144 else
145 sc_gem5::reportMsgInfoMap[it->second].actions = SC_UNSPECIFIED;
146}
147
148void
149sc_report::suppress_infos(bool suppress)
150{
151 if (suppress)
152 sc_gem5::reportSevInfos[SC_INFO].actions = SC_DO_NOTHING;
153 else

--- 21 unchanged lines hidden ---