sc_process_handle.cc (12899:9a512f5c4e91) sc_process_handle.cc (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
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
66sc_process_handle::sc_process_handle()
67{
68 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
69}
70
71sc_process_handle::sc_process_handle(const sc_process_handle &)
72{
73 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
74}
75
76sc_process_handle::sc_process_handle(sc_object *)
77{
78 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
79}
80
81sc_process_handle::~sc_process_handle()
82{
83 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
84}
85
86
87bool
88sc_process_handle::valid() const
89{
90 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
91 return false;
92}
93
94
95sc_process_handle &
96sc_process_handle::operator = (const sc_process_handle &)
97{
98 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
99 return *this;
100}
101
102bool
103sc_process_handle::operator == (const sc_process_handle &) const
104{
105 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
106 return true;
107}
108
109bool
110sc_process_handle::operator != (const sc_process_handle &) const
111{
112 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
113 return false;
114}
115
116bool
117sc_process_handle::operator < (const sc_process_handle &) const
118{
119 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
120 return false;
121}
122
123bool
124sc_process_handle::swap(sc_process_handle &)
125{
126 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
127 return false;
128}
129
130
131const char *
132sc_process_handle::name() const
133{
134 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
135 return "";
136}
137
138sc_curr_proc_kind
139sc_process_handle::proc_kind() const
140{
141 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
142 return SC_NO_PROC_;
143}
144
145const std::vector<sc_object *> &
146sc_process_handle::get_child_objects() const
147{
148 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
149 return *(const std::vector<sc_object *> *)nullptr;
150}
151
152const std::vector<sc_event *> &
153sc_process_handle::get_child_events() const
154{
155 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
156 return *(const std::vector<sc_event *> *)nullptr;
157}
158
159sc_object *
160sc_process_handle::get_parent_object() const
161{
162 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
163 return (sc_object *)nullptr;
164}
165
166sc_object *
167sc_process_handle::get_process_object() const
168{
169 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
170 return (sc_object *)nullptr;
171}
172
173bool
174sc_process_handle::dynamic() const
175{
176 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
177 return false;
178}
179
180bool
181sc_process_handle::terminated() const
182{
183 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
184 return false;
185}
186
187const sc_event &
188sc_process_handle::terminated_event() const
189{
190 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
191 return *(sc_event *)nullptr;
192}
193
194
195void
196sc_process_handle::suspend(sc_descendent_inclusion_info include_descendants)
197{
198 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
199}
200
201void
202sc_process_handle::resume(sc_descendent_inclusion_info include_descendants)
203{
204 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
205}
206
207void
208sc_process_handle::disable(sc_descendent_inclusion_info include_descendants)
209{
210 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
211}
212
213void
214sc_process_handle::enable(sc_descendent_inclusion_info include_descendants)
215{
216 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
217}
218
219void
220sc_process_handle::kill(sc_descendent_inclusion_info include_descendants)
221{
222 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
223}
224
225void
226sc_process_handle::reset(sc_descendent_inclusion_info include_descendants)
227{
228 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
229}
230
231bool
232sc_process_handle::is_unwinding()
233{
234 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
235 return false;
236}
237
238const sc_event &
239sc_process_handle::reset_event() const
240{
241 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
242 return *(sc_event *)nullptr;
243}
244
245
246void
247sc_process_handle::sync_reset_on(
248 sc_descendent_inclusion_info include_descendants)
249{
250 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
251}
252
253void
254sc_process_handle::sync_reset_off(
255 sc_descendent_inclusion_info include_descendants)
256{
257 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
258}
259
260void
261sc_process_handle::warn_unimpl(const char *func)
262{
263 warn("%s not implemented.\n", func);
264}
265
266
267sc_process_handle
268sc_get_current_process_handle()
269{
270 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
271 return sc_process_handle();
272}
273
274bool
275sc_is_unwinding()
276{
277 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
278 return false;
279}
280
281bool sc_allow_process_control_corners;
282
283} // namespace sc_core
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