gem5  v20.1.0.0
messages.cc
Go to the documentation of this file.
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
9  * notice, this list of conditions and the following disclaimer in the
10  * documentation and/or other materials provided with the distribution;
11  * neither the name of the copyright holders nor the names of its
12  * contributors may be used to endorse or promote products derived from
13  * this software without specific prior written permission.
14  *
15  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
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 
29 #include "systemc/utils/report.hh"
30 
31 namespace sc_core
32 {
33 
34 const char SC_ID_NO_BOOL_RETURNED_[] = "operator does not return boolean";
35 const char SC_ID_NO_INT_RETURNED_[] = "operator does not return int";
36 const char SC_ID_NO_SC_LOGIC_RETURNED_[] = "operator does not return sc_logic";
37 const char SC_ID_OPERAND_NOT_SC_LOGIC_[] = "operand is not sc_logic";
38 const char SC_ID_OPERAND_NOT_BOOL_[] = "operand is not bool";
39 const char SC_ID_INSTANCE_EXISTS_[] = "object already exists";
40 const char SC_ID_ILLEGAL_CHARACTERS_[] = "illegal characters";
42  "internal error: sc_vc6_process_helper";
44  "maximum number of processes per module exceeded (VC6)";
46  "module construction not properly completed: did "
47  "you forget to add a sc_module_name parameter to "
48  "your module constructor?";
50  "hierarchical name as shown may be incorrect due to previous errors";
51 const char SC_ID_SET_STACK_SIZE_[] =
52  "set_stack_size() is only allowed for SC_THREADs and SC_CTHREADs";
53 const char SC_ID_SC_MODULE_NAME_USE_[] = "incorrect use of sc_module_name";
55  "an sc_module_name parameter for your constructor is required";
56 const char SC_ID_SET_TIME_RESOLUTION_[] = "set time resolution failed";
57 const char SC_ID_SET_DEFAULT_TIME_UNIT_[] = "set default time unit failed";
59  "default time unit changed to time resolution";
61  "inconsistent library configuration detected";
63  "wait() is only allowed in SC_THREADs and SC_CTHREADs";
65  "next_trigger() is only allowed in SC_METHODs";
67  "immediate notification is not allowed during update phase or elaboration";
68 const char SC_ID_HALT_NOT_ALLOWED_[] = "halt() is only allowed in SC_CTHREADs";
70  "watching() has been deprecated, use reset_signal_is()";
71 const char SC_ID_DONT_INITIALIZE_[] =
72  "dont_initialize() has no effect for SC_CTHREADs";
73 const char SC_ID_WAIT_N_INVALID_[] = "wait(n) is only valid for n > 0";
74 const char SC_ID_MAKE_SENSITIVE_[] = "make sensitive failed";
75 const char SC_ID_MAKE_SENSITIVE_POS_[] = "make sensitive pos failed";
76 const char SC_ID_MAKE_SENSITIVE_NEG_[] = "make sensitive neg failed";
77 const char SC_ID_INSERT_MODULE_[] = "insert module failed";
78 const char SC_ID_REMOVE_MODULE_[] = "remove module failed";
79 const char SC_ID_NOTIFY_DELAYED_[] =
80  "notify_delayed() cannot be called on events "
81  "that have pending notifications";
82 const char SC_ID_GEN_UNIQUE_NAME_[] =
83  "cannot generate unique name from null string";
85  "module name stack is empty: did you forget to "
86  "add a sc_module_name parameter to your module "
87  "constructor?";
88 const char SC_ID_NAME_EXISTS_[] = "name already exists";
90  "immediate self-notification ignored as of IEEE 1666-2011";
92  "wait() not allowed during unwinding";
94  "the simulation contains timed-events but they are "
95  "ignored by sc_cycle() ==> the simulation will be "
96  "incorrect";
98  "sc_unwind_exception not re-thrown during kill/reset";
100  "kill/reset ignored during unwinding";
102  "call to SC_METHOD in sc_module while simulation running";
104  "call to SC_THREAD in sc_module while simulation running";
106  "call to SC_CTHREAD in sc_module while simulation running";
108  "simulation time value overflow, simulation aborted";
110  "sc_stop has already been called";
112  "sc_start called after sc_stop has been called";
114  "attempt to set sc_stop mode after start will be ignored";
116  "attempt to restart simulation after error";
117 const char SC_ID_SIMULATION_UNCAUGHT_EXCEPTION_[] = "uncaught exception";
119  "simulation phase callbacks not enabled";
121  "empty simulation phase callback called";
123  "register simulation phase callback";
125  "forbidden action in simulation phase callback";
127  "sc_start called unexpectedly";
129  "throw_it on method/non-running process is being ignored ";
131  "dynamic event notification encountered when sensitivity is static";
133  "disable() or dont_initialize() called on process with no static "
134  "sensitivity, it will be orphaned";
136  "Undefined process control interaction";
138  "Attempt to get terminated event for a method process";
140  "Attempt to register method process with sc_join object";
142  "Attempt to invoke process with no semantics() method";
144  "Attempt to get an event for non-existent process";
146  "invalid use of sc_(and|or)_event list";
147 const char SC_ID_UNKNOWN_PROCESS_TYPE_[] = "Unknown process type";
148 const char SC_ID_TIME_CONVERSION_FAILED_[] = "sc_time conversion failed";
150  "negative simulation interval specified in sc_start call";
152  "sc_module(const char*), sc_module(const std::string&) "
153  "have been deprecated, use sc_module(const sc_module_name&)";
155  "attempt to use an empty process handle ignored";
157  "no activity or clock movement for sc_start() invocation";
159  "a process may not be killed before it is initialized";
161  "a process may not be asynchronously reset while the "
162  "simulation is not running";
164  "throw_it not allowed unless simulation is running ";
165 
166 namespace {
167 
168 sc_gem5::DefaultReportMessages predfinedMessages{
170  {501, SC_ID_NO_INT_RETURNED_},
174  {505, SC_ID_INSTANCE_EXISTS_},
180  {511, SC_ID_SET_STACK_SIZE_},
192  {524, SC_ID_DONT_INITIALIZE_},
193  {525, SC_ID_WAIT_N_INVALID_},
194  {526, SC_ID_MAKE_SENSITIVE_},
197  {529, SC_ID_INSERT_MODULE_},
198  {530, SC_ID_REMOVE_MODULE_},
199  {531, SC_ID_NOTIFY_DELAYED_},
200  {532, SC_ID_GEN_UNIQUE_NAME_},
202  {534, SC_ID_NAME_EXISTS_},
240 };
241 
242 } // anonymous namespace
243 
244 } // namespace sc_core
sc_core::SC_ID_MAKE_SENSITIVE_POS_
const char SC_ID_MAKE_SENSITIVE_POS_[]
Definition: messages.cc:75
sc_core::SC_ID_NOT_EXPECTING_DYNAMIC_EVENT_NOTIFY_
const char SC_ID_NOT_EXPECTING_DYNAMIC_EVENT_NOTIFY_[]
Definition: messages.cc:130
sc_core::SC_ID_WATCHING_NOT_ALLOWED_
const char SC_ID_WATCHING_NOT_ALLOWED_[]
Definition: messages.cc:69
sc_core::SC_ID_CYCLE_MISSES_EVENTS_
const char SC_ID_CYCLE_MISSES_EVENTS_[]
Definition: messages.cc:93
sc_core::SC_ID_HIER_NAME_INCORRECT_
const char SC_ID_HIER_NAME_INCORRECT_[]
Definition: messages.cc:49
sc_core::SC_ID_NO_SC_LOGIC_RETURNED_
const char SC_ID_NO_SC_LOGIC_RETURNED_[]
Definition: messages.cc:36
sc_core::SC_ID_PHASE_CALLBACK_FORBIDDEN_
const char SC_ID_PHASE_CALLBACK_FORBIDDEN_[]
Definition: messages.cc:124
sc_core::SC_ID_DEFAULT_TIME_UNIT_CHANGED_
const char SC_ID_DEFAULT_TIME_UNIT_CHANGED_[]
Definition: messages.cc:58
sc_core::SC_ID_VC6_PROCESS_HELPER_
const char SC_ID_VC6_PROCESS_HELPER_[]
Definition: messages.cc:41
sc_core::SC_ID_METHOD_TERMINATION_EVENT_
const char SC_ID_METHOD_TERMINATION_EVENT_[]
Definition: messages.cc:137
sc_core::SC_ID_RESET_PROCESS_WHILE_NOT_RUNNING_
const char SC_ID_RESET_PROCESS_WHILE_NOT_RUNNING_[]
Definition: messages.cc:160
sc_core::SC_ID_IMMEDIATE_SELF_NOTIFICATION_
const char SC_ID_IMMEDIATE_SELF_NOTIFICATION_[]
Definition: messages.cc:89
sc_core::SC_ID_MODULE_THREAD_AFTER_START_
const char SC_ID_MODULE_THREAD_AFTER_START_[]
Definition: messages.cc:103
sc_core
Definition: messages.cc:31
sc_core::SC_ID_SIMULATION_TIME_OVERFLOW_
const char SC_ID_SIMULATION_TIME_OVERFLOW_[]
Definition: messages.cc:107
report.hh
sc_core::SC_ID_SC_MODULE_NAME_REQUIRED_
const char SC_ID_SC_MODULE_NAME_REQUIRED_[]
Definition: messages.cc:54
sc_core::SC_ID_PROCESS_ALREADY_UNWINDING_
const char SC_ID_PROCESS_ALREADY_UNWINDING_[]
Definition: messages.cc:99
sc_core::SC_ID_END_MODULE_NOT_CALLED_
const char SC_ID_END_MODULE_NOT_CALLED_[]
Definition: messages.cc:45
sc_core::SC_ID_NAME_EXISTS_
const char SC_ID_NAME_EXISTS_[]
Definition: messages.cc:88
sc_core::SC_ID_INSERT_MODULE_
const char SC_ID_INSERT_MODULE_[]
Definition: messages.cc:77
sc_core::SC_ID_SIMULATION_START_AFTER_ERROR_
const char SC_ID_SIMULATION_START_AFTER_ERROR_[]
Definition: messages.cc:115
sc_core::SC_ID_OPERAND_NOT_SC_LOGIC_
const char SC_ID_OPERAND_NOT_SC_LOGIC_[]
Definition: messages.cc:37
sc_core::SC_ID_PHASE_CALLBACKS_UNSUPPORTED_
const char SC_ID_PHASE_CALLBACKS_UNSUPPORTED_[]
Definition: messages.cc:118
sc_core::SC_ID_STOP_MODE_AFTER_START_
const char SC_ID_STOP_MODE_AFTER_START_[]
Definition: messages.cc:113
sc_core::SC_ID_EVENT_LIST_FAILED_
const char SC_ID_EVENT_LIST_FAILED_[]
Definition: messages.cc:145
sc_core::SC_ID_VC6_MAX_PROCESSES_EXCEEDED_
const char SC_ID_VC6_MAX_PROCESSES_EXCEEDED_[]
Definition: messages.cc:43
sc_core::SC_ID_WAIT_DURING_UNWINDING_
const char SC_ID_WAIT_DURING_UNWINDING_[]
Definition: messages.cc:91
sc_core::SC_ID_JOIN_ON_METHOD_HANDLE_
const char SC_ID_JOIN_ON_METHOD_HANDLE_[]
Definition: messages.cc:139
sc_core::SC_ID_THROW_IT_WHILE_NOT_RUNNING_
const char SC_ID_THROW_IT_WHILE_NOT_RUNNING_[]
Definition: messages.cc:163
sc_core::SC_ID_GEN_UNIQUE_NAME_
const char SC_ID_GEN_UNIQUE_NAME_[]
Definition: messages.cc:82
sc_core::SC_ID_THROW_IT_IGNORED_
const char SC_ID_THROW_IT_IGNORED_[]
Definition: messages.cc:128
sc_core::SC_ID_RETHROW_UNWINDING_
const char SC_ID_RETHROW_UNWINDING_[]
Definition: messages.cc:97
sc_core::SC_ID_NO_BOOL_RETURNED_
const char SC_ID_NO_BOOL_RETURNED_[]
Definition: messages.cc:34
sc_core::SC_ID_NOTIFY_DELAYED_
const char SC_ID_NOTIFY_DELAYED_[]
Definition: messages.cc:79
sc_core::SC_ID_SIMULATION_START_UNEXPECTED_
const char SC_ID_SIMULATION_START_UNEXPECTED_[]
Definition: messages.cc:126
sc_core::SC_ID_OPERAND_NOT_BOOL_
const char SC_ID_OPERAND_NOT_BOOL_[]
Definition: messages.cc:38
sc_core::SC_ID_BAD_SC_MODULE_CONSTRUCTOR_
const char SC_ID_BAD_SC_MODULE_CONSTRUCTOR_[]
Definition: messages.cc:151
sc_core::SC_ID_IMMEDIATE_NOTIFICATION_
const char SC_ID_IMMEDIATE_NOTIFICATION_[]
Definition: messages.cc:66
sc_core::SC_ID_NO_INT_RETURNED_
const char SC_ID_NO_INT_RETURNED_[]
Definition: messages.cc:35
sc_core::SC_ID_TIME_CONVERSION_FAILED_
const char SC_ID_TIME_CONVERSION_FAILED_[]
Definition: messages.cc:148
sc_gem5::DefaultReportMessages
Definition: report.hh:110
sc_core::SC_ID_MODULE_METHOD_AFTER_START_
const char SC_ID_MODULE_METHOD_AFTER_START_[]
Definition: messages.cc:101
sc_core::SC_ID_SC_MODULE_NAME_USE_
const char SC_ID_SC_MODULE_NAME_USE_[]
Definition: messages.cc:53
sc_core::SC_ID_NEXT_TRIGGER_NOT_ALLOWED_
const char SC_ID_NEXT_TRIGGER_NOT_ALLOWED_[]
Definition: messages.cc:64
messages.hh
sc_core::SC_ID_WAIT_N_INVALID_
const char SC_ID_WAIT_N_INVALID_[]
Definition: messages.cc:73
sc_core::SC_ID_ILLEGAL_CHARACTERS_
const char SC_ID_ILLEGAL_CHARACTERS_[]
Definition: messages.cc:40
sc_core::SC_ID_SIMULATION_START_AFTER_STOP_
const char SC_ID_SIMULATION_START_AFTER_STOP_[]
Definition: messages.cc:111
sc_core::SC_ID_INSTANCE_EXISTS_
const char SC_ID_INSTANCE_EXISTS_[]
Definition: messages.cc:39
sc_core::SC_ID_PHASE_CALLBACK_NOT_IMPLEMENTED_
const char SC_ID_PHASE_CALLBACK_NOT_IMPLEMENTED_[]
Definition: messages.cc:120
sc_core::SC_ID_PHASE_CALLBACK_REGISTER_
const char SC_ID_PHASE_CALLBACK_REGISTER_[]
Definition: messages.cc:122
sc_core::SC_ID_DONT_INITIALIZE_
const char SC_ID_DONT_INITIALIZE_[]
Definition: messages.cc:71
sc_core::SC_ID_HALT_NOT_ALLOWED_
const char SC_ID_HALT_NOT_ALLOWED_[]
Definition: messages.cc:68
sc_core::SC_ID_KILL_PROCESS_WHILE_UNITIALIZED_
const char SC_ID_KILL_PROCESS_WHILE_UNITIALIZED_[]
Definition: messages.cc:158
sc_core::SC_ID_SIMULATION_STOP_CALLED_TWICE_
const char SC_ID_SIMULATION_STOP_CALLED_TWICE_[]
Definition: messages.cc:109
sc_core::SC_ID_DISABLE_WILL_ORPHAN_PROCESS_
const char SC_ID_DISABLE_WILL_ORPHAN_PROCESS_[]
Definition: messages.cc:132
sc_core::SC_ID_MODULE_CTHREAD_AFTER_START_
const char SC_ID_MODULE_CTHREAD_AFTER_START_[]
Definition: messages.cc:105
sc_core::SC_ID_MODULE_NAME_STACK_EMPTY_
const char SC_ID_MODULE_NAME_STACK_EMPTY_[]
Definition: messages.cc:84
sc_core::SC_ID_WAIT_NOT_ALLOWED_
const char SC_ID_WAIT_NOT_ALLOWED_[]
Definition: messages.cc:62
sc_core::SC_ID_NO_PROCESS_SEMANTICS_
const char SC_ID_NO_PROCESS_SEMANTICS_[]
Definition: messages.cc:141
sc_core::SC_ID_UNKNOWN_PROCESS_TYPE_
const char SC_ID_UNKNOWN_PROCESS_TYPE_[]
Definition: messages.cc:147
sc_core::SC_ID_NEGATIVE_SIMULATION_TIME_
const char SC_ID_NEGATIVE_SIMULATION_TIME_[]
Definition: messages.cc:149
sc_core::SC_ID_EMPTY_PROCESS_HANDLE_
const char SC_ID_EMPTY_PROCESS_HANDLE_[]
Definition: messages.cc:154
sc_core::SC_ID_SIMULATION_UNCAUGHT_EXCEPTION_
const char SC_ID_SIMULATION_UNCAUGHT_EXCEPTION_[]
Definition: messages.cc:117
sc_core::SC_ID_NO_SC_START_ACTIVITY_
const char SC_ID_NO_SC_START_ACTIVITY_[]
Definition: messages.cc:156
sc_core::SC_ID_SET_STACK_SIZE_
const char SC_ID_SET_STACK_SIZE_[]
Definition: messages.cc:51
sc_core::SC_ID_SET_DEFAULT_TIME_UNIT_
const char SC_ID_SET_DEFAULT_TIME_UNIT_[]
Definition: messages.cc:57
sc_core::SC_ID_MAKE_SENSITIVE_NEG_
const char SC_ID_MAKE_SENSITIVE_NEG_[]
Definition: messages.cc:76
sc_core::SC_ID_REMOVE_MODULE_
const char SC_ID_REMOVE_MODULE_[]
Definition: messages.cc:78
sc_core::SC_ID_SET_TIME_RESOLUTION_
const char SC_ID_SET_TIME_RESOLUTION_[]
Definition: messages.cc:56
sc_core::SC_ID_MAKE_SENSITIVE_
const char SC_ID_MAKE_SENSITIVE_[]
Definition: messages.cc:74
sc_core::SC_ID_PROCESS_CONTROL_CORNER_CASE_
const char SC_ID_PROCESS_CONTROL_CORNER_CASE_[]
Definition: messages.cc:135
sc_core::SC_ID_EVENT_ON_NULL_PROCESS_
const char SC_ID_EVENT_ON_NULL_PROCESS_[]
Definition: messages.cc:143
sc_core::SC_ID_INCONSISTENT_API_CONFIG_
const char SC_ID_INCONSISTENT_API_CONFIG_[]
Definition: messages.cc:60

Generated on Wed Sep 30 2020 14:02:14 for gem5 by doxygen 1.8.17