external_master.cc (11800:54436a1784dc) | external_master.cc (11817:594d96c093d0) |
---|---|
1/* 2 * Copyright (c) 2012-2014 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 22 unchanged lines hidden (view full) --- 31 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 32 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 33 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 34 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 35 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 36 * 37 * Authors: Andrew Bardsley 38 * Curtis Dunham | 1/* 2 * Copyright (c) 2012-2014 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 22 unchanged lines hidden (view full) --- 31 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 32 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 33 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 34 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 35 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 36 * 37 * Authors: Andrew Bardsley 38 * Curtis Dunham |
39 * Christian Menard |
|
39 */ 40 41#include "mem/external_master.hh" 42 43#include <cctype> 44#include <iomanip> 45 46#include "base/trace.hh" 47#include "debug/ExternalPort.hh" | 40 */ 41 42#include "mem/external_master.hh" 43 44#include <cctype> 45#include <iomanip> 46 47#include "base/trace.hh" 48#include "debug/ExternalPort.hh" |
49#include "sim/system.hh" |
|
48 49std::map<std::string, ExternalMaster::Handler *> 50 ExternalMaster::portHandlers; 51 52ExternalMaster::ExternalMaster(ExternalMasterParams *params) : 53 MemObject(params), 54 externalPort(NULL), 55 portName(params->name + ".port"), 56 portType(params->port_type), | 50 51std::map<std::string, ExternalMaster::Handler *> 52 ExternalMaster::portHandlers; 53 54ExternalMaster::ExternalMaster(ExternalMasterParams *params) : 55 MemObject(params), 56 externalPort(NULL), 57 portName(params->name + ".port"), 58 portType(params->port_type), |
57 portData(params->port_data) | 59 portData(params->port_data), 60 masterId(params->system->getMasterId(params->name)) |
58{} 59 60BaseMasterPort & 61ExternalMaster::getMasterPort(const std::string &if_name, 62 PortID idx) 63{ 64 if (if_name == "port") { 65 DPRINTF(ExternalPort, "Trying to bind external port: %s %s\n", --- 44 unchanged lines hidden --- | 61{} 62 63BaseMasterPort & 64ExternalMaster::getMasterPort(const std::string &if_name, 65 PortID idx) 66{ 67 if (if_name == "port") { 68 DPRINTF(ExternalPort, "Trying to bind external port: %s %s\n", --- 44 unchanged lines hidden --- |