port.cc (2642:c162e0359b49) port.cc (2663:c82193ae8467)
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{
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(false);
48 Request req;
49 Packet pkt(&req, cmd, Packet::Broadcast);
50
51 for (ChunkGenerator gen(addr, size, peerBlockSize());
52 !gen.done(); gen.next()) {
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());
54 req.setSize(gen.size());
53 req.setPhys(gen.addr(), gen.size(), 0);
55 pkt.reinitFromRequest();
56 pkt.dataStatic(p);
57 sendFunctional(&pkt);
58 p += gen.size();
59 }
60}
61
62void

--- 22 unchanged lines hidden ---
54 pkt.reinitFromRequest();
55 pkt.dataStatic(p);
56 sendFunctional(&pkt);
57 p += gen.size();
58 }
59}
60
61void

--- 22 unchanged lines hidden ---