systemc: Switch to using predefined messages for utils.
[gem5.git] / src / systemc / ext / utils / _using.hh
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 * Authors: Gabe Black
28 */
29
30 #ifndef __SYSTEMC_EXT_UTILS__USING_HH__
31 #define __SYSTEMC_EXT_UTILS__USING_HH__
32
33 #include "_utils.hh"
34
35 using sc_core::sc_severity;
36 using sc_core::SC_INFO;
37 using sc_core::SC_WARNING;
38 using sc_core::SC_ERROR;
39 using sc_core::SC_FATAL;
40 using sc_core::SC_MAX_SEVERITY;
41 using sc_core::sc_verbosity;
42 using sc_core::SC_NONE;
43 using sc_core::SC_LOW;
44 using sc_core::SC_MEDIUM;
45 using sc_core::SC_HIGH;
46 using sc_core::SC_FULL;
47 using sc_core::SC_DEBUG;
48 using sc_core::sc_report;
49
50 using sc_core::sc_actions;
51 using sc_core::SC_UNSPECIFIED;
52 using sc_core::SC_DO_NOTHING;
53 using sc_core::SC_THROW;
54 using sc_core::SC_LOG;
55 using sc_core::SC_DISPLAY;
56 using sc_core::SC_CACHE_REPORT;
57 using sc_core::SC_INTERRUPT;
58 using sc_core::SC_STOP;
59 using sc_core::SC_ABORT;
60 using sc_core::sc_report_handler_proc;
61 using sc_core::sc_report_handler;
62 using sc_core::sc_interrupt_here;
63 using sc_core::sc_stop_here;
64 using sc_core::sc_report_compose_message;
65 using sc_core::sc_report_close_default_log;
66 using sc_core::SC_DEFAULT_INFO_ACTIONS;
67 using sc_core::SC_DEFAULT_WARNING_ACTIONS;
68 using sc_core::SC_DEFAULT_ERROR_ACTIONS;
69 using sc_core::SC_DEFAULT_FATAL_ACTIONS;
70
71 using sc_core::sc_trace_file;
72 using sc_core::sc_create_vcd_trace_file;
73 using sc_core::sc_close_vcd_trace_file;
74 using sc_core::sc_write_comment;
75 using sc_core::sc_trace;
76 using sc_core::sc_trace_delta_cycles;
77
78 using sc_core::sc_exception;
79
80 using sc_core::sc_vector_base;
81 using sc_core::sc_vector_iter;
82 using sc_core::sc_vector;
83 using sc_core::sc_vector_assembly;
84
85 using sc_dt::sc_abs;
86 using sc_dt::sc_max;
87 using sc_dt::sc_min;
88
89 using sc_core::sc_version_major;
90 using sc_core::sc_version_minor;
91 using sc_core::sc_version_patch;
92 using sc_core::sc_version_originator;
93 using sc_core::sc_version_release_date;
94 using sc_core::sc_version_prerelease;
95 using sc_core::sc_version_string;
96 using sc_core::sc_copyright_string;
97 using sc_core::sc_release;
98 using sc_core::sc_copyright;
99 using sc_core::sc_version;
100
101 using sc_core::SC_ID_UNKNOWN_ERROR_;
102 using sc_core::SC_ID_WITHOUT_MESSAGE_;
103 using sc_core::SC_ID_NOT_IMPLEMENTED_;
104 using sc_core::SC_ID_INTERNAL_ERROR_;
105 using sc_core::SC_ID_ASSERTION_FAILED_;
106 using sc_core::SC_ID_OUT_OF_BOUNDS_;
107 using sc_core::SC_ID_ABORT_;
108
109 using sc_core::SC_ID_REGISTER_ID_FAILED_;
110 using sc_core::SC_ID_STRING_TOO_LONG_;
111 using sc_core::SC_ID_FRONT_ON_EMPTY_LIST_;
112 using sc_core::SC_ID_BACK_ON_EMPTY_LIST_;
113 using sc_core::SC_ID_IEEE_1666_DEPRECATION_;
114 using sc_core::SC_ID_VECTOR_INIT_CALLED_TWICE_;
115 using sc_core::SC_ID_VECTOR_BIND_EMPTY_;
116 using sc_core::SC_ID_VECTOR_NONOBJECT_ELEMENTS_;
117
118 #endif //__SYSTEMC_EXT_UTILS__USING_HH__