fa_lru.cc (7612:917946898102) | fa_lru.cc (7823:dac01f14f20f) |
---|---|
1/* 2 * Copyright (c) 2003-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; --- 206 unchanged lines hidden (view full) --- 215 tagHash[blkAlign(addr)] = blk; 216 if (blk->isValid()) { 217 replacements[0]++; 218 } else { 219 tagsInUse++; 220 blk->isTouched = true; 221 if (!warmedUp && tagsInUse.value() >= warmupBound) { 222 warmedUp = true; | 1/* 2 * Copyright (c) 2003-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; --- 206 unchanged lines hidden (view full) --- 215 tagHash[blkAlign(addr)] = blk; 216 if (blk->isValid()) { 217 replacements[0]++; 218 } else { 219 tagsInUse++; 220 blk->isTouched = true; 221 if (!warmedUp && tagsInUse.value() >= warmupBound) { 222 warmedUp = true; |
223 warmupCycle = curTick; | 223 warmupCycle = curTick(); |
224 } 225 } 226 //assert(check()); 227 return blk; 228} 229 230void 231FALRU::insertBlock(Addr addr, FALRU::BlkType *blk, int context_src) --- 65 unchanged lines hidden --- | 224 } 225 } 226 //assert(check()); 227 return blk; 228} 229 230void 231FALRU::insertBlock(Addr addr, FALRU::BlkType *blk, int context_src) --- 65 unchanged lines hidden --- |