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 62 for (ChunkGenerator gen(addr, size, peerBlockSize()); 63 !gen.done(); gen.next()) { 64 req.setPhys(gen.addr(), gen.size(), 0); |
65 Packet pkt(&req, cmd, Packet::Broadcast); |
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 --- |