Deleted Added
sdiff udiff text old ( 2641:6d9d837e2032 ) new ( 2642:c162e0359b49 )
full compact
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 "mem/packet_impl.hh"
35#include "mem/port.hh"
36
37void
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 ---