1/* |
2 * Copyright (c) 2011-2013 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 9 * licensed hereunder. You may use the software subject to the license 10 * terms below provided that you ensure that this notice is replicated --- 72 unchanged lines hidden (view full) --- 83 */ 84class PortProxy 85{ 86 private: 87 88 /** The actual physical port used by this proxy. */ 89 MasterPort &_port; 90 |
91 /** Granularity of any transactions issued through this proxy. */ 92 const unsigned int _cacheLineSize; 93 |
94 void blobHelper(Addr addr, uint8_t *p, int size, MemCmd cmd) const; 95 96 public: |
97 PortProxy(MasterPort &port, unsigned int cacheLineSize) : 98 _port(port), _cacheLineSize(cacheLineSize) { } |
99 virtual ~PortProxy() { } 100 101 /** 102 * Read size bytes memory at address and store in p. 103 */ 104 virtual void readBlob(Addr addr, uint8_t* p, int size) const 105 { blobHelper(addr, p, size, MemCmd::ReadReq); } 106 --- 77 unchanged lines hidden --- |