dma_device.cc (9524:d6ffa982a68b) | dma_device.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 --- 149 unchanged lines hidden (view full) --- 158{ 159 // one DMA request sender state for every action, that is then 160 // split into many requests and packets based on the block size, 161 // i.e. cache line size 162 DmaReqState *reqState = new DmaReqState(event, size, delay); 163 164 DPRINTF(DMA, "Starting DMA for addr: %#x size: %d sched: %d\n", addr, size, 165 event ? event->scheduled() : -1); | 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 --- 149 unchanged lines hidden (view full) --- 158{ 159 // one DMA request sender state for every action, that is then 160 // split into many requests and packets based on the block size, 161 // i.e. cache line size 162 DmaReqState *reqState = new DmaReqState(event, size, delay); 163 164 DPRINTF(DMA, "Starting DMA for addr: %#x size: %d sched: %d\n", addr, size, 165 event ? event->scheduled() : -1); |
166 for (ChunkGenerator gen(addr, size, peerBlockSize()); | 166 for (ChunkGenerator gen(addr, size, sys->cacheLineSize()); |
167 !gen.done(); gen.next()) { 168 Request *req = new Request(gen.addr(), gen.size(), flag, masterId); 169 PacketPtr pkt = new Packet(req, cmd); 170 171 // Increment the data pointer on a write 172 if (data) 173 pkt->dataStatic(data + gen.complete()); 174 --- 93 unchanged lines hidden --- | 167 !gen.done(); gen.next()) { 168 Request *req = new Request(gen.addr(), gen.size(), flag, masterId); 169 PacketPtr pkt = new Packet(req, cmd); 170 171 // Increment the data pointer on a write 172 if (data) 173 pkt->dataStatic(data + gen.complete()); 174 --- 93 unchanged lines hidden --- |