port.cc (4321:6f8b597ab244) | port.cc (4870:fcc39d001154) |
---|---|
1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 44 unchanged lines hidden (view full) --- 53 peer->getOwner()->deletePortRefs(peer); 54 peer = NULL; 55} 56 57void 58Port::blobHelper(Addr addr, uint8_t *p, int size, MemCmd cmd) 59{ 60 Request req; | 1/* 2 * Copyright (c) 2002-2005 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 44 unchanged lines hidden (view full) --- 53 peer->getOwner()->deletePortRefs(peer); 54 peer = NULL; 55} 56 57void 58Port::blobHelper(Addr addr, uint8_t *p, int size, MemCmd cmd) 59{ 60 Request req; |
61 Packet pkt(&req, cmd, Packet::Broadcast); | |
62 63 for (ChunkGenerator gen(addr, size, peerBlockSize()); 64 !gen.done(); gen.next()) { 65 req.setPhys(gen.addr(), gen.size(), 0); | 61 62 for (ChunkGenerator gen(addr, size, peerBlockSize()); 63 !gen.done(); gen.next()) { 64 req.setPhys(gen.addr(), gen.size(), 0); |
66 pkt.reinitFromRequest(); | 65 Packet pkt(&req, cmd, Packet::Broadcast); |
67 pkt.dataStatic(p); 68 sendFunctional(&pkt); 69 p += gen.size(); 70 } 71} 72 73void 74Port::writeBlob(Addr addr, uint8_t *p, int size) --- 21 unchanged lines hidden --- | 66 pkt.dataStatic(p); 67 sendFunctional(&pkt); 68 p += gen.size(); 69 } 70} 71 72void 73Port::writeBlob(Addr addr, uint8_t *p, int size) --- 21 unchanged lines hidden --- |