stride.cc (8832:247fee427324) | stride.cc (9288:3d6da8559605) |
---|---|
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; --- 26 unchanged lines hidden (view full) --- 35 */ 36 37#include "base/trace.hh" 38#include "debug/HWPrefetch.hh" 39#include "mem/cache/prefetch/stride.hh" 40 41void 42StridePrefetcher::calculatePrefetch(PacketPtr &pkt, std::list<Addr> &addresses, | 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; --- 26 unchanged lines hidden (view full) --- 35 */ 36 37#include "base/trace.hh" 38#include "debug/HWPrefetch.hh" 39#include "mem/cache/prefetch/stride.hh" 40 41void 42StridePrefetcher::calculatePrefetch(PacketPtr &pkt, std::list<Addr> &addresses, |
43 std::list<Tick> &delays) | 43 std::list<Cycles> &delays) |
44{ 45 if (!pkt->req->hasPC()) { 46 DPRINTF(HWPrefetch, "ignoring request with no PC"); 47 return; 48 } 49 50 Addr blk_addr = pkt->getAddr() & ~(Addr)(blkSize-1); 51 MasterID master_id = useMasterId ? pkt->req->masterId() : 0; --- 85 unchanged lines hidden --- | 44{ 45 if (!pkt->req->hasPC()) { 46 DPRINTF(HWPrefetch, "ignoring request with no PC"); 47 return; 48 } 49 50 Addr blk_addr = pkt->getAddr() & ~(Addr)(blkSize-1); 51 MasterID master_id = useMasterId ? pkt->req->masterId() : 0; --- 85 unchanged lines hidden --- |