port.cc (2641:6d9d837e2032) | port.cc (2642:c162e0359b49) |
---|---|
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; --- 17 unchanged lines hidden (view full) --- 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29/** 30 * @file Port object definitions. 31 */ 32 33#include "base/chunk_generator.hh" | 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; --- 17 unchanged lines hidden (view full) --- 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29/** 30 * @file Port object definitions. 31 */ 32 33#include "base/chunk_generator.hh" |
34#include "base/trace.hh" |
|
34#include "mem/packet_impl.hh" 35#include "mem/port.hh" 36 37void | 35#include "mem/packet_impl.hh" 36#include "mem/port.hh" 37 38void |
39Port::setPeer(Port *port) 40{ 41 DPRINTF(Config, "setting peer to %s\n", port->name()); 42 peer = port; 43} 44 45void |
|
38Port::blobHelper(Addr addr, uint8_t *p, int size, Packet::Command cmd) 39{ 40 Request req(false); 41 Packet pkt(&req, cmd, Packet::Broadcast); 42 43 for (ChunkGenerator gen(addr, size, peerBlockSize()); 44 !gen.done(); gen.next()) { 45 req.setPaddr(gen.addr()); --- 31 unchanged lines hidden --- | 46Port::blobHelper(Addr addr, uint8_t *p, int size, Packet::Command cmd) 47{ 48 Request req(false); 49 Packet pkt(&req, cmd, Packet::Broadcast); 50 51 for (ChunkGenerator gen(addr, size, peerBlockSize()); 52 !gen.done(); gen.next()) { 53 req.setPaddr(gen.addr()); --- 31 unchanged lines hidden --- |