sc_interface.cc revision 13303:045f002c325c
1298SN/A/*
28734Sdam.sunwoo@arm.com * Copyright 2018 Google, Inc.
38142SAli.Saidi@ARM.com *
48142SAli.Saidi@ARM.com * Redistribution and use in source and binary forms, with or without
58142SAli.Saidi@ARM.com * modification, are permitted provided that the following conditions are
68142SAli.Saidi@ARM.com * met: redistributions of source code must retain the above copyright
78142SAli.Saidi@ARM.com * notice, this list of conditions and the following disclaimer;
88142SAli.Saidi@ARM.com * redistributions in binary form must reproduce the above copyright
98142SAli.Saidi@ARM.com * notice, this list of conditions and the following disclaimer in the
108142SAli.Saidi@ARM.com * documentation and/or other materials provided with the distribution;
118142SAli.Saidi@ARM.com * neither the name of the copyright holders nor the names of its
128142SAli.Saidi@ARM.com * contributors may be used to endorse or promote products derived from
138142SAli.Saidi@ARM.com * this software without specific prior written permission.
148580Ssteve.reinhardt@amd.com *
152188SN/A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16298SN/A * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17298SN/A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18298SN/A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19298SN/A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20298SN/A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21298SN/A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22298SN/A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23298SN/A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24298SN/A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25298SN/A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26298SN/A *
27298SN/A * Authors: Gabe Black
28298SN/A */
29298SN/A
30298SN/A#include "base/logging.hh"
31298SN/A#include "systemc/ext/core/sc_event.hh"
32298SN/A#include "systemc/ext/core/sc_interface.hh"
33298SN/A#include "systemc/ext/utils/sc_report_handler.hh"
34298SN/A
35298SN/Anamespace sc_core
36298SN/A{
37298SN/A
38298SN/Avoid sc_interface::register_port(sc_port_base &, const char *) {}
39298SN/A
402665Ssaidi@eecs.umich.educonst sc_event &
412665Ssaidi@eecs.umich.edusc_interface::default_event() const
42298SN/A{
43298SN/A    SC_REPORT_WARNING("(W116) channel doesn't have a default event", "");
44954SN/A    static sc_gem5::InternalScEvent dummy;
45956SN/A    return dummy;
46956SN/A}
478229Snate@binkert.org
484078Sbinkertn@umich.edu} // namespace sc_core
49299SN/A