port_proxy.hh (9850:87d6b41749e9) | port_proxy.hh (10564:a8c16e2d466a) |
---|---|
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 --- 77 unchanged lines hidden (view full) --- 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 | 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 --- 77 unchanged lines hidden (view full) --- 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 */ | 94 public: 95 PortProxy(MasterPort &port, unsigned int cacheLineSize) : 96 _port(port), _cacheLineSize(cacheLineSize) { } 97 virtual ~PortProxy() { } 98 99 /** 100 * Read size bytes memory at address and store in p. 101 */ |
104 virtual void readBlob(Addr addr, uint8_t* p, int size) const 105 { blobHelper(addr, p, size, MemCmd::ReadReq); } | 102 virtual void readBlob(Addr addr, uint8_t* p, int size) const; |
106 107 /** 108 * Write size bytes from p to address. 109 */ | 103 104 /** 105 * Write size bytes from p to address. 106 */ |
110 virtual void writeBlob(Addr addr, uint8_t* p, int size) const 111 { blobHelper(addr, p, size, MemCmd::WriteReq); } | 107 virtual void writeBlob(Addr addr, const uint8_t* p, int size) const; |
112 113 /** 114 * Fill size bytes starting at addr with byte value val. 115 */ 116 virtual void memsetBlob(Addr addr, uint8_t v, int size) const; 117 118 /** 119 * Read sizeof(T) bytes from address and return as object T. --- 64 unchanged lines hidden --- | 108 109 /** 110 * Fill size bytes starting at addr with byte value val. 111 */ 112 virtual void memsetBlob(Addr addr, uint8_t v, int size) const; 113 114 /** 115 * Read sizeof(T) bytes from address and return as object T. --- 64 unchanged lines hidden --- |