sc_process_handle.cc revision 12838
112838Sgabeblack@google.com/*
212838Sgabeblack@google.com * Copyright 2018 Google, Inc.
312838Sgabeblack@google.com *
412838Sgabeblack@google.com * Redistribution and use in source and binary forms, with or without
512838Sgabeblack@google.com * modification, are permitted provided that the following conditions are
612838Sgabeblack@google.com * met: redistributions of source code must retain the above copyright
712838Sgabeblack@google.com * notice, this list of conditions and the following disclaimer;
812838Sgabeblack@google.com * redistributions in binary form must reproduce the above copyright
912838Sgabeblack@google.com * notice, this list of conditions and the following disclaimer in the
1012838Sgabeblack@google.com * documentation and/or other materials provided with the distribution;
1112838Sgabeblack@google.com * neither the name of the copyright holders nor the names of its
1212838Sgabeblack@google.com * contributors may be used to endorse or promote products derived from
1312838Sgabeblack@google.com * this software without specific prior written permission.
1412838Sgabeblack@google.com *
1512838Sgabeblack@google.com * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1612838Sgabeblack@google.com * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1712838Sgabeblack@google.com * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1812838Sgabeblack@google.com * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1912838Sgabeblack@google.com * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
2012838Sgabeblack@google.com * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
2112838Sgabeblack@google.com * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2212838Sgabeblack@google.com * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2312838Sgabeblack@google.com * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2412838Sgabeblack@google.com * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2512838Sgabeblack@google.com * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2612838Sgabeblack@google.com *
2712838Sgabeblack@google.com * Authors: Gabe Black
2812838Sgabeblack@google.com */
2912838Sgabeblack@google.com
3012838Sgabeblack@google.com#include "base/logging.hh"
3112838Sgabeblack@google.com#include "systemc/ext/core/sc_process_handle.hh"
3212838Sgabeblack@google.com
3312838Sgabeblack@google.comnamespace sc_core
3412838Sgabeblack@google.com{
3512838Sgabeblack@google.com
3612838Sgabeblack@google.comconst char *
3712838Sgabeblack@google.comsc_unwind_exception::what() const throw()
3812838Sgabeblack@google.com{
3912838Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
4012838Sgabeblack@google.com    return "";
4112838Sgabeblack@google.com}
4212838Sgabeblack@google.com
4312838Sgabeblack@google.combool
4412838Sgabeblack@google.comsc_unwind_exception::is_reset() const
4512838Sgabeblack@google.com{
4612838Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
4712838Sgabeblack@google.com    return false;
4812838Sgabeblack@google.com}
4912838Sgabeblack@google.com
5012838Sgabeblack@google.comsc_unwind_exception::sc_unwind_exception()
5112838Sgabeblack@google.com{
5212838Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
5312838Sgabeblack@google.com}
5412838Sgabeblack@google.com
5512838Sgabeblack@google.comsc_unwind_exception::sc_unwind_exception(const sc_unwind_exception &)
5612838Sgabeblack@google.com{
5712838Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
5812838Sgabeblack@google.com}
5912838Sgabeblack@google.com
6012838Sgabeblack@google.comsc_unwind_exception::~sc_unwind_exception() throw()
6112838Sgabeblack@google.com{
6212838Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
6312838Sgabeblack@google.com}
6412838Sgabeblack@google.com
6512838Sgabeblack@google.com
6612838Sgabeblack@google.comsc_process_handle::sc_process_handle()
6712838Sgabeblack@google.com{
6812838Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
6912838Sgabeblack@google.com}
7012838Sgabeblack@google.com
7112838Sgabeblack@google.comsc_process_handle::sc_process_handle(const sc_process_handle &)
7212838Sgabeblack@google.com{
7312838Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
7412838Sgabeblack@google.com}
7512838Sgabeblack@google.com
7612838Sgabeblack@google.comsc_process_handle::sc_process_handle(sc_object *)
7712838Sgabeblack@google.com{
7812838Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
7912838Sgabeblack@google.com}
8012838Sgabeblack@google.com
8112838Sgabeblack@google.comsc_process_handle::~sc_process_handle()
8212838Sgabeblack@google.com{
8312838Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
8412838Sgabeblack@google.com}
8512838Sgabeblack@google.com
8612838Sgabeblack@google.com
8712838Sgabeblack@google.combool
8812838Sgabeblack@google.comsc_process_handle::valid() const
8912838Sgabeblack@google.com{
9012838Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
9112838Sgabeblack@google.com    return false;
9212838Sgabeblack@google.com}
9312838Sgabeblack@google.com
9412838Sgabeblack@google.com
9512838Sgabeblack@google.comsc_process_handle &
9612838Sgabeblack@google.comsc_process_handle::operator = (const sc_process_handle &)
9712838Sgabeblack@google.com{
9812838Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
9912838Sgabeblack@google.com    return *this;
10012838Sgabeblack@google.com}
10112838Sgabeblack@google.com
10212838Sgabeblack@google.combool
10312838Sgabeblack@google.comsc_process_handle::operator == (const sc_process_handle &) const
10412838Sgabeblack@google.com{
10512838Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
10612838Sgabeblack@google.com    return true;
10712838Sgabeblack@google.com}
10812838Sgabeblack@google.com
10912838Sgabeblack@google.combool
11012838Sgabeblack@google.comsc_process_handle::operator != (const sc_process_handle &) const
11112838Sgabeblack@google.com{
11212838Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
11312838Sgabeblack@google.com    return false;
11412838Sgabeblack@google.com}
11512838Sgabeblack@google.com
11612838Sgabeblack@google.combool
11712838Sgabeblack@google.comsc_process_handle::operator < (const sc_process_handle &) const
11812838Sgabeblack@google.com{
11912838Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
12012838Sgabeblack@google.com    return false;
12112838Sgabeblack@google.com}
12212838Sgabeblack@google.com
12312838Sgabeblack@google.combool
12412838Sgabeblack@google.comsc_process_handle::swap(sc_process_handle &)
12512838Sgabeblack@google.com{
12612838Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
12712838Sgabeblack@google.com    return false;
12812838Sgabeblack@google.com}
12912838Sgabeblack@google.com
13012838Sgabeblack@google.com
13112838Sgabeblack@google.comconst char *
13212838Sgabeblack@google.comsc_process_handle::name() const
13312838Sgabeblack@google.com{
13412838Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
13512838Sgabeblack@google.com    return "";
13612838Sgabeblack@google.com}
13712838Sgabeblack@google.com
13812838Sgabeblack@google.comsc_curr_proc_kind
13912838Sgabeblack@google.comsc_process_handle::proc_kind() const
14012838Sgabeblack@google.com{
14112838Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
14212838Sgabeblack@google.com    return SC_NO_PROC_;
14312838Sgabeblack@google.com}
14412838Sgabeblack@google.com
14512838Sgabeblack@google.comconst std::vector<sc_object *> &
14612838Sgabeblack@google.comsc_process_handle::get_child_objects() const
14712838Sgabeblack@google.com{
14812838Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
14912838Sgabeblack@google.com    return *(const std::vector<sc_object *> *)nullptr;
15012838Sgabeblack@google.com}
15112838Sgabeblack@google.com
15212838Sgabeblack@google.comconst std::vector<sc_event *> &
15312838Sgabeblack@google.comsc_process_handle::get_child_events() const
15412838Sgabeblack@google.com{
15512838Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
15612838Sgabeblack@google.com    return *(const std::vector<sc_event *> *)nullptr;
15712838Sgabeblack@google.com}
15812838Sgabeblack@google.com
15912838Sgabeblack@google.comsc_object *
16012838Sgabeblack@google.comsc_process_handle::get_parent_object() const
16112838Sgabeblack@google.com{
16212838Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
16312838Sgabeblack@google.com    return (sc_object *)nullptr;
16412838Sgabeblack@google.com}
16512838Sgabeblack@google.com
16612838Sgabeblack@google.comsc_object *
16712838Sgabeblack@google.comsc_process_handle::get_process_object() const
16812838Sgabeblack@google.com{
16912838Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
17012838Sgabeblack@google.com    return (sc_object *)nullptr;
17112838Sgabeblack@google.com}
17212838Sgabeblack@google.com
17312838Sgabeblack@google.combool
17412838Sgabeblack@google.comsc_process_handle::dynamic() const
17512838Sgabeblack@google.com{
17612838Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
17712838Sgabeblack@google.com    return false;
17812838Sgabeblack@google.com}
17912838Sgabeblack@google.com
18012838Sgabeblack@google.combool
18112838Sgabeblack@google.comsc_process_handle::terminated() const
18212838Sgabeblack@google.com{
18312838Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
18412838Sgabeblack@google.com    return false;
18512838Sgabeblack@google.com}
18612838Sgabeblack@google.com
18712838Sgabeblack@google.comconst sc_event &
18812838Sgabeblack@google.comsc_process_handle::terminated_event() const
18912838Sgabeblack@google.com{
19012838Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
19112838Sgabeblack@google.com    return *(sc_event *)nullptr;
19212838Sgabeblack@google.com}
19312838Sgabeblack@google.com
19412838Sgabeblack@google.com
19512838Sgabeblack@google.comvoid
19612838Sgabeblack@google.comsc_process_handle::suspend(sc_descendent_inclusion_info include_descendants)
19712838Sgabeblack@google.com{
19812838Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
19912838Sgabeblack@google.com}
20012838Sgabeblack@google.com
20112838Sgabeblack@google.comvoid
20212838Sgabeblack@google.comsc_process_handle::resume(sc_descendent_inclusion_info include_descendants)
20312838Sgabeblack@google.com{
20412838Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
20512838Sgabeblack@google.com}
20612838Sgabeblack@google.com
20712838Sgabeblack@google.comvoid
20812838Sgabeblack@google.comsc_process_handle::disable(sc_descendent_inclusion_info include_descendants)
20912838Sgabeblack@google.com{
21012838Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
21112838Sgabeblack@google.com}
21212838Sgabeblack@google.com
21312838Sgabeblack@google.comvoid
21412838Sgabeblack@google.comsc_process_handle::enable(sc_descendent_inclusion_info include_descendants)
21512838Sgabeblack@google.com{
21612838Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
21712838Sgabeblack@google.com}
21812838Sgabeblack@google.com
21912838Sgabeblack@google.comvoid
22012838Sgabeblack@google.comsc_process_handle::kill(sc_descendent_inclusion_info include_descendants)
22112838Sgabeblack@google.com{
22212838Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
22312838Sgabeblack@google.com}
22412838Sgabeblack@google.com
22512838Sgabeblack@google.comvoid
22612838Sgabeblack@google.comsc_process_handle::reset(sc_descendent_inclusion_info include_descendants)
22712838Sgabeblack@google.com{
22812838Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
22912838Sgabeblack@google.com}
23012838Sgabeblack@google.com
23112838Sgabeblack@google.combool
23212838Sgabeblack@google.comsc_process_handle::is_unwinding()
23312838Sgabeblack@google.com{
23412838Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
23512838Sgabeblack@google.com    return false;
23612838Sgabeblack@google.com}
23712838Sgabeblack@google.com
23812838Sgabeblack@google.comconst sc_event &
23912838Sgabeblack@google.comsc_process_handle::reset_event() const
24012838Sgabeblack@google.com{
24112838Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
24212838Sgabeblack@google.com    return *(sc_event *)nullptr;
24312838Sgabeblack@google.com}
24412838Sgabeblack@google.com
24512838Sgabeblack@google.com
24612838Sgabeblack@google.comvoid
24712838Sgabeblack@google.comsc_process_handle::sync_reset_on(
24812838Sgabeblack@google.com        sc_descendent_inclusion_info include_descendants)
24912838Sgabeblack@google.com{
25012838Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
25112838Sgabeblack@google.com}
25212838Sgabeblack@google.com
25312838Sgabeblack@google.comvoid
25412838Sgabeblack@google.comsc_process_handle::sync_reset_off(
25512838Sgabeblack@google.com        sc_descendent_inclusion_info include_descendants)
25612838Sgabeblack@google.com{
25712838Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
25812838Sgabeblack@google.com}
25912838Sgabeblack@google.com
26012838Sgabeblack@google.comvoid
26112838Sgabeblack@google.comsc_process_handle::warn_unimpl(const char *func)
26212838Sgabeblack@google.com{
26312838Sgabeblack@google.com    warn("%s not implemented.\n", func);
26412838Sgabeblack@google.com}
26512838Sgabeblack@google.com
26612838Sgabeblack@google.com
26712838Sgabeblack@google.comsc_process_handle
26812838Sgabeblack@google.comsc_get_current_process_handle()
26912838Sgabeblack@google.com{
27012838Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
27112838Sgabeblack@google.com    return sc_process_handle();
27212838Sgabeblack@google.com}
27312838Sgabeblack@google.com
27412838Sgabeblack@google.combool
27512838Sgabeblack@google.comsc_is_unwinding()
27612838Sgabeblack@google.com{
27712838Sgabeblack@google.com    warn("%s not implemented.\n", __PRETTY_FUNCTION__);
27812838Sgabeblack@google.com    return false;
27912838Sgabeblack@google.com}
28012838Sgabeblack@google.com
28112838Sgabeblack@google.com} // namespace sc_core
282