sc_port.cc revision 12957:e54f9890363d
16019Shines@cs.fsu.edu/* 211577SDylan.Johnson@ARM.com * Copyright 2018 Google, Inc. 37399SAli.Saidi@ARM.com * 47399SAli.Saidi@ARM.com * Redistribution and use in source and binary forms, with or without 57399SAli.Saidi@ARM.com * modification, are permitted provided that the following conditions are 67399SAli.Saidi@ARM.com * met: redistributions of source code must retain the above copyright 77399SAli.Saidi@ARM.com * notice, this list of conditions and the following disclaimer; 87399SAli.Saidi@ARM.com * redistributions in binary form must reproduce the above copyright 97399SAli.Saidi@ARM.com * notice, this list of conditions and the following disclaimer in the 107399SAli.Saidi@ARM.com * documentation and/or other materials provided with the distribution; 117399SAli.Saidi@ARM.com * neither the name of the copyright holders nor the names of its 127399SAli.Saidi@ARM.com * contributors may be used to endorse or promote products derived from 137399SAli.Saidi@ARM.com * this software without specific prior written permission. 146019Shines@cs.fsu.edu * 156019Shines@cs.fsu.edu * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 166019Shines@cs.fsu.edu * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 176019Shines@cs.fsu.edu * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 186019Shines@cs.fsu.edu * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 196019Shines@cs.fsu.edu * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 206019Shines@cs.fsu.edu * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 216019Shines@cs.fsu.edu * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 226019Shines@cs.fsu.edu * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 236019Shines@cs.fsu.edu * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 246019Shines@cs.fsu.edu * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 256019Shines@cs.fsu.edu * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 266019Shines@cs.fsu.edu * 276019Shines@cs.fsu.edu * Authors: Gabe Black 286019Shines@cs.fsu.edu */ 296019Shines@cs.fsu.edu 306019Shines@cs.fsu.edu#include "base/logging.hh" 316019Shines@cs.fsu.edu#include "systemc/core/bindinfo.hh" 326019Shines@cs.fsu.edu#include "systemc/ext/core/sc_port.hh" 336019Shines@cs.fsu.edu 346019Shines@cs.fsu.edunamespace sc_core 356019Shines@cs.fsu.edu{ 366019Shines@cs.fsu.edu 376019Shines@cs.fsu.edusc_port_base::sc_port_base(const char *name, int n, sc_port_policy p) : 386019Shines@cs.fsu.edu sc_object(name) 396019Shines@cs.fsu.edu{} 407399SAli.Saidi@ARM.com 416019Shines@cs.fsu.eduvoid 426019Shines@cs.fsu.edusc_port_base::warn_unimpl(const char *func) const 436019Shines@cs.fsu.edu{ 446019Shines@cs.fsu.edu warn("%s not implemented.\n", func); 456019Shines@cs.fsu.edu} 466019Shines@cs.fsu.edu 476019Shines@cs.fsu.eduint sc_port_base::maxSize() const { return _maxSize; } 488229Snate@binkert.orgint sc_port_base::size() const { return _gem5BindInfo.size(); } 496019Shines@cs.fsu.edu 506019Shines@cs.fsu.eduvoid 5110687SAndreas.Sandberg@ARM.comsc_port_base::bind(sc_interface &) 526019Shines@cs.fsu.edu{ 536019Shines@cs.fsu.edu warn("%s not implemented.\n", __PRETTY_FUNCTION__); 546116Snate@binkert.org} 5510463SAndreas.Sandberg@ARM.com 566019Shines@cs.fsu.eduvoid 576019Shines@cs.fsu.edusc_port_base::bind(sc_port_base &) 586019Shines@cs.fsu.edu{ 596019Shines@cs.fsu.edu warn("%s not implemented.\n", __PRETTY_FUNCTION__); 606019Shines@cs.fsu.edu} 617404SAli.Saidi@ARM.com 6210037SARM gem5 Developers} // namespace sc_core 6310037SARM gem5 Developers