base.cc (8832:247fee427324) base.cc (8949:3fa1ee293096)
1/*
2 * Copyright (c) 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;

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

229 pfBufferHit++;
230 DPRINTF(HWPrefetch, "Prefetch addr already in pf buffer\n");
231 continue;
232 }
233
234 // create a prefetch memreq
235 Request *prefetchReq = new Request(*addrIter, blkSize, 0, masterId);
236 PacketPtr prefetch =
1/*
2 * Copyright (c) 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;

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

229 pfBufferHit++;
230 DPRINTF(HWPrefetch, "Prefetch addr already in pf buffer\n");
231 continue;
232 }
233
234 // create a prefetch memreq
235 Request *prefetchReq = new Request(*addrIter, blkSize, 0, masterId);
236 PacketPtr prefetch =
237 new Packet(prefetchReq, MemCmd::HardPFReq, Packet::Broadcast);
237 new Packet(prefetchReq, MemCmd::HardPFReq);
238 prefetch->allocate();
239 prefetch->req->setThreadContext(pkt->req->contextId(),
240 pkt->req->threadId());
241
242 prefetch->time = time + (*delayIter); // @todo ADD LATENCY HERE
243
244 // We just remove the head if we are full
245 if (pf.size() == size) {

--- 36 unchanged lines hidden ---
238 prefetch->allocate();
239 prefetch->req->setThreadContext(pkt->req->contextId(),
240 pkt->req->threadId());
241
242 prefetch->time = time + (*delayIter); // @todo ADD LATENCY HERE
243
244 // We just remove the head if we are full
245 if (pf.size() == size) {

--- 36 unchanged lines hidden ---