stride.cc (5875:d82be3235ab4) | stride.cc (6010:a1e71f3576f8) |
---|---|
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; --- 32 unchanged lines hidden (view full) --- 41StridePrefetcher::calculatePrefetch(PacketPtr &pkt, std::list<Addr> &addresses, 42 std::list<Tick> &delays) 43{ 44 if (!pkt->req->hasPC()) { 45 DPRINTF(HWPrefetch, "ignoring request with no PC"); 46 return; 47 } 48 | 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; --- 32 unchanged lines hidden (view full) --- 41StridePrefetcher::calculatePrefetch(PacketPtr &pkt, std::list<Addr> &addresses, 42 std::list<Tick> &delays) 43{ 44 if (!pkt->req->hasPC()) { 45 DPRINTF(HWPrefetch, "ignoring request with no PC"); 46 return; 47 } 48 |
49 if (useContextId && !pkt->req->hasContextId()) { 50 DPRINTF(HWPrefetch, "ignoring request with no context ID"); 51 return; 52 } 53 |
|
49 Addr blk_addr = pkt->getAddr() & ~(Addr)(blkSize-1); 50 int ctx_id = useContextId ? pkt->req->contextId() : 0; 51 Addr pc = pkt->req->getPC(); 52 assert(ctx_id < Max_Contexts); 53 std::list<StrideEntry*> &tab = table[ctx_id]; 54 55 /* Scan Table for instAddr Match */ 56 std::list<StrideEntry*>::iterator iter; --- 69 unchanged lines hidden --- | 54 Addr blk_addr = pkt->getAddr() & ~(Addr)(blkSize-1); 55 int ctx_id = useContextId ? pkt->req->contextId() : 0; 56 Addr pc = pkt->req->getPC(); 57 assert(ctx_id < Max_Contexts); 58 std::list<StrideEntry*> &tab = table[ctx_id]; 59 60 /* Scan Table for instAddr Match */ 61 std::list<StrideEntry*>::iterator iter; --- 69 unchanged lines hidden --- |