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; --- 31 unchanged lines hidden (view full) --- 40{ 41 DPRINTF(Config, "setting peer to %s\n", port->name()); 42 peer = port; 43} 44 45void 46Port::blobHelper(Addr addr, uint8_t *p, int size, Packet::Command cmd) 47{ |
48 Request req; |
49 Packet pkt(&req, cmd, Packet::Broadcast); 50 51 for (ChunkGenerator gen(addr, size, peerBlockSize()); 52 !gen.done(); gen.next()) { |
53 req.setPhys(gen.addr(), gen.size(), 0); |
54 pkt.reinitFromRequest(); 55 pkt.dataStatic(p); 56 sendFunctional(&pkt); 57 p += gen.size(); 58 } 59} 60 61void --- 22 unchanged lines hidden --- |