port_proxy.hh (8922:17f037ad8918) | port_proxy.hh (9814:7ad2b0186a32) |
---|---|
1/* | 1/* |
2 * Copyright (c) 2011-2012 ARM Limited | 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 | 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 |
|
91 void blobHelper(Addr addr, uint8_t *p, int size, MemCmd cmd) const; 92 93 public: | 94 void blobHelper(Addr addr, uint8_t *p, int size, MemCmd cmd) const; 95 96 public: |
94 PortProxy(MasterPort &port) : _port(port) { } | 97 PortProxy(MasterPort &port, unsigned int cacheLineSize) : 98 _port(port), _cacheLineSize(cacheLineSize) { } |
95 virtual ~PortProxy() { } 96 97 /** 98 * Read size bytes memory at address and store in p. 99 */ 100 virtual void readBlob(Addr addr, uint8_t* p, int size) const 101 { blobHelper(addr, p, size, MemCmd::ReadReq); } 102 --- 77 unchanged lines hidden --- | 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 --- |