sc_process_handle.cc revision 12939:5256de693153
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#include "base/logging.hh"
31#include "systemc/ext/core/sc_process_handle.hh"
32
33namespace sc_core
34{
35
36const char *
37sc_unwind_exception::what() const throw()
38{
39    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
40    return "";
41}
42
43bool
44sc_unwind_exception::is_reset() const
45{
46    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
47    return false;
48}
49
50sc_unwind_exception::sc_unwind_exception()
51{
52    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
53}
54
55sc_unwind_exception::sc_unwind_exception(const sc_unwind_exception &)
56{
57    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
58}
59
60sc_unwind_exception::~sc_unwind_exception() throw()
61{
62    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
63}
64
65
66const char *
67sc_process_b::name()
68{
69    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
70    return "";
71}
72
73const char *
74sc_process_b::kind()
75{
76    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
77    return "";
78}
79
80
81sc_process_b *
82sc_get_curr_process_handle()
83{
84    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
85    return nullptr;
86}
87
88
89sc_process_handle::sc_process_handle()
90{
91    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
92}
93
94sc_process_handle::sc_process_handle(const sc_process_handle &)
95{
96    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
97}
98
99sc_process_handle::sc_process_handle(sc_object *)
100{
101    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
102}
103
104sc_process_handle::~sc_process_handle()
105{
106    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
107}
108
109
110bool
111sc_process_handle::valid() const
112{
113    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
114    return false;
115}
116
117
118sc_process_handle &
119sc_process_handle::operator = (const sc_process_handle &)
120{
121    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
122    return *this;
123}
124
125bool
126sc_process_handle::operator == (const sc_process_handle &) const
127{
128    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
129    return true;
130}
131
132bool
133sc_process_handle::operator != (const sc_process_handle &) const
134{
135    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
136    return false;
137}
138
139bool
140sc_process_handle::operator < (const sc_process_handle &) const
141{
142    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
143    return false;
144}
145
146bool
147sc_process_handle::swap(sc_process_handle &)
148{
149    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
150    return false;
151}
152
153
154const char *
155sc_process_handle::name() const
156{
157    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
158    return "";
159}
160
161sc_curr_proc_kind
162sc_process_handle::proc_kind() const
163{
164    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
165    return SC_NO_PROC_;
166}
167
168const std::vector<sc_object *> &
169sc_process_handle::get_child_objects() const
170{
171    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
172    return *(const std::vector<sc_object *> *)nullptr;
173}
174
175const std::vector<sc_event *> &
176sc_process_handle::get_child_events() const
177{
178    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
179    return *(const std::vector<sc_event *> *)nullptr;
180}
181
182sc_object *
183sc_process_handle::get_parent_object() const
184{
185    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
186    return (sc_object *)nullptr;
187}
188
189sc_object *
190sc_process_handle::get_process_object() const
191{
192    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
193    return (sc_object *)nullptr;
194}
195
196bool
197sc_process_handle::dynamic() const
198{
199    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
200    return false;
201}
202
203bool
204sc_process_handle::terminated() const
205{
206    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
207    return false;
208}
209
210const sc_event &
211sc_process_handle::terminated_event() const
212{
213    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
214    return *(sc_event *)nullptr;
215}
216
217
218void
219sc_process_handle::suspend(sc_descendent_inclusion_info include_descendants)
220{
221    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
222}
223
224void
225sc_process_handle::resume(sc_descendent_inclusion_info include_descendants)
226{
227    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
228}
229
230void
231sc_process_handle::disable(sc_descendent_inclusion_info include_descendants)
232{
233    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
234}
235
236void
237sc_process_handle::enable(sc_descendent_inclusion_info include_descendants)
238{
239    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
240}
241
242void
243sc_process_handle::kill(sc_descendent_inclusion_info include_descendants)
244{
245    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
246}
247
248void
249sc_process_handle::reset(sc_descendent_inclusion_info include_descendants)
250{
251    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
252}
253
254bool
255sc_process_handle::is_unwinding()
256{
257    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
258    return false;
259}
260
261const sc_event &
262sc_process_handle::reset_event() const
263{
264    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
265    return *(sc_event *)nullptr;
266}
267
268
269void
270sc_process_handle::sync_reset_on(
271        sc_descendent_inclusion_info include_descendants)
272{
273    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
274}
275
276void
277sc_process_handle::sync_reset_off(
278        sc_descendent_inclusion_info include_descendants)
279{
280    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
281}
282
283void
284sc_process_handle::warn_unimpl(const char *func)
285{
286    warn("%s not implemented.\n", func);
287}
288
289
290sc_process_handle
291sc_get_current_process_handle()
292{
293    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
294    return sc_process_handle();
295}
296
297bool
298sc_is_unwinding()
299{
300    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
301    return false;
302}
303
304bool sc_allow_process_control_corners;
305
306} // namespace sc_core
307