port.cc (8949:3fa1ee293096) | port.cc (8965:1ebd7c856abc) |
---|---|
1/* 2 * Copyright (c) 2012 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 --- 36 unchanged lines hidden (view full) --- 45/** 46 * @file 47 * Port object definitions. 48 */ 49#include "base/trace.hh" 50#include "mem/mem_object.hh" 51#include "mem/port.hh" 52 | 1/* 2 * Copyright (c) 2012 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 --- 36 unchanged lines hidden (view full) --- 45/** 46 * @file 47 * Port object definitions. 48 */ 49#include "base/trace.hh" 50#include "mem/mem_object.hh" 51#include "mem/port.hh" 52 |
53Port::Port(const std::string &_name, MemObject& _owner) 54 : portName(_name), peer(NULL), owner(_owner) | 53Port::Port(const std::string &_name, MemObject& _owner, PortId _id) 54 : portName(_name), id(_id), peer(NULL), owner(_owner) |
55{ 56} 57 58Port::~Port() 59{ 60} 61 62/** 63 * Master port 64 */ | 55{ 56} 57 58Port::~Port() 59{ 60} 61 62/** 63 * Master port 64 */ |
65MasterPort::MasterPort(const std::string& name, MemObject* owner) 66 : Port(name, *owner), _slavePort(NULL) | 65MasterPort::MasterPort(const std::string& name, MemObject* owner, PortId _id) 66 : Port(name, *owner, _id), _slavePort(NULL) |
67{ 68} 69 70MasterPort::~MasterPort() 71{ 72} 73 74SlavePort& --- 50 unchanged lines hidden (view full) --- 125 pkt.senderState = &prs; 126 127 sendFunctional(&pkt); 128} 129 130/** 131 * Slave port 132 */ | 67{ 68} 69 70MasterPort::~MasterPort() 71{ 72} 73 74SlavePort& --- 50 unchanged lines hidden (view full) --- 125 pkt.senderState = &prs; 126 127 sendFunctional(&pkt); 128} 129 130/** 131 * Slave port 132 */ |
133SlavePort::SlavePort(const std::string& name, MemObject* owner) 134 : Port(name, *owner), _masterPort(NULL) | 133SlavePort::SlavePort(const std::string& name, MemObject* owner, PortId id) 134 : Port(name, *owner, id), _masterPort(NULL) |
135{ 136} 137 138SlavePort::~SlavePort() 139{ 140} 141 142void --- 39 unchanged lines hidden --- | 135{ 136} 137 138SlavePort::~SlavePort() 139{ 140} 141 142void --- 39 unchanged lines hidden --- |