addr_mapper.cc (9542:683991c46ac8) | addr_mapper.cc (9814:7ad2b0186a32) |
---|---|
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 --- 37 unchanged lines hidden (view full) --- 46{ 47} 48 49void 50AddrMapper::init() 51{ 52 if (!slavePort.isConnected() || !masterPort.isConnected()) 53 fatal("Address mapper is not connected on both sides.\n"); | 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 --- 37 unchanged lines hidden (view full) --- 46{ 47} 48 49void 50AddrMapper::init() 51{ 52 if (!slavePort.isConnected() || !masterPort.isConnected()) 53 fatal("Address mapper is not connected on both sides.\n"); |
54 55 if ((slavePort.peerBlockSize() != masterPort.peerBlockSize()) && 56 slavePort.peerBlockSize() && masterPort.peerBlockSize()) 57 fatal("Slave port size %d, master port size %d \n " 58 "don't have the same block size... Not supported.\n", 59 slavePort.peerBlockSize(), masterPort.peerBlockSize()); | |
60} 61 62BaseMasterPort& 63AddrMapper::getMasterPort(const std::string& if_name, PortID idx) 64{ 65 if (if_name == "master") { 66 return masterPort; 67 } else { --- 122 unchanged lines hidden (view full) --- 190bool 191AddrMapper::isSnooping() const 192{ 193 if (slavePort.isSnooping()) 194 fatal("AddrMapper doesn't support remapping of snooping requests\n"); 195 return false; 196} 197 | 54} 55 56BaseMasterPort& 57AddrMapper::getMasterPort(const std::string& if_name, PortID idx) 58{ 59 if (if_name == "master") { 60 return masterPort; 61 } else { --- 122 unchanged lines hidden (view full) --- 184bool 185AddrMapper::isSnooping() const 186{ 187 if (slavePort.isSnooping()) 188 fatal("AddrMapper doesn't support remapping of snooping requests\n"); 189 return false; 190} 191 |
198unsigned 199AddrMapper::deviceBlockSizeMaster() 200{ 201 return slavePort.peerBlockSize(); 202} 203 204unsigned 205AddrMapper::deviceBlockSizeSlave() 206{ 207 return masterPort.peerBlockSize(); 208} 209 | |
210void 211AddrMapper::recvRetryMaster() 212{ 213 slavePort.sendRetry(); 214} 215 216void 217AddrMapper::recvRetrySlave() --- 54 unchanged lines hidden --- | 192void 193AddrMapper::recvRetryMaster() 194{ 195 slavePort.sendRetry(); 196} 197 198void 199AddrMapper::recvRetrySlave() --- 54 unchanged lines hidden --- |