port.cc (8710:aab813d6a162) port.cc (8832:247fee427324)
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;

--- 56 unchanged lines hidden (view full) ---

65
66void
67Port::blobHelper(Addr addr, uint8_t *p, int size, MemCmd cmd)
68{
69 Request req;
70
71 for (ChunkGenerator gen(addr, size, peerBlockSize());
72 !gen.done(); gen.next()) {
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;

--- 56 unchanged lines hidden (view full) ---

65
66void
67Port::blobHelper(Addr addr, uint8_t *p, int size, MemCmd cmd)
68{
69 Request req;
70
71 for (ChunkGenerator gen(addr, size, peerBlockSize());
72 !gen.done(); gen.next()) {
73 req.setPhys(gen.addr(), gen.size(), 0);
73 req.setPhys(gen.addr(), gen.size(), 0, Request::funcMasterId);
74 Packet pkt(&req, cmd, Packet::Broadcast);
75 pkt.dataStatic(p);
76 sendFunctional(&pkt);
77 p += gen.size();
78 }
79}
80
81void

--- 19 unchanged lines hidden (view full) ---

101
102 delete [] buf;
103}
104
105
106void
107Port::printAddr(Addr a)
108{
74 Packet pkt(&req, cmd, Packet::Broadcast);
75 pkt.dataStatic(p);
76 sendFunctional(&pkt);
77 p += gen.size();
78 }
79}
80
81void

--- 19 unchanged lines hidden (view full) ---

101
102 delete [] buf;
103}
104
105
106void
107Port::printAddr(Addr a)
108{
109 Request req(a, 1, 0);
109 Request req(a, 1, 0, Request::funcMasterId);
110 Packet pkt(&req, MemCmd::PrintReq, Packet::Broadcast);
111 Packet::PrintReqState prs(std::cerr);
112 pkt.senderState = &prs;
113
114 sendFunctional(&pkt);
115}
110 Packet pkt(&req, MemCmd::PrintReq, Packet::Broadcast);
111 Packet::PrintReqState prs(std::cerr);
112 pkt.senderState = &prs;
113
114 sendFunctional(&pkt);
115}