port_proxy.cc (10653:e3fc6bc7f97e) port_proxy.cc (11793:ef606668d247)
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

--- 23 unchanged lines hidden (view full) ---

32 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 *
37 * Authors: Andreas Hansson
38 */
39
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

--- 23 unchanged lines hidden (view full) ---

32 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
33 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
34 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 *
37 * Authors: Andreas Hansson
38 */
39
40#include "base/chunk_generator.hh"
41#include "mem/port_proxy.hh"
42
40#include "mem/port_proxy.hh"
41
42#include "base/chunk_generator.hh"
43
43void
44PortProxy::readBlob(Addr addr, uint8_t *p, int size) const
45{
46 for (ChunkGenerator gen(addr, size, _cacheLineSize); !gen.done();
47 gen.next()) {
48 Request req(gen.addr(), gen.size(), 0, Request::funcMasterId);
49 Packet pkt(&req, MemCmd::ReadReq);
50 pkt.dataStatic(p);

--- 29 unchanged lines hidden ---
44void
45PortProxy::readBlob(Addr addr, uint8_t *p, int size) const
46{
47 for (ChunkGenerator gen(addr, size, _cacheLineSize); !gen.done();
48 gen.next()) {
49 Request req(gen.addr(), gen.size(), 0, Request::funcMasterId);
50 Packet pkt(&req, MemCmd::ReadReq);
51 pkt.dataStatic(p);

--- 29 unchanged lines hidden ---