fa_lru.cc (4626:ed8aacb19c03) | fa_lru.cc (5706:2cc2387049bc) |
---|---|
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; --- 130 unchanged lines hidden (view full) --- 139{ 140 tagIterator iter = tagHash.find(addr); 141 if (iter != tagHash.end()) { 142 return (*iter).second; 143 } 144 return NULL; 145} 146 | 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; --- 130 unchanged lines hidden (view full) --- 139{ 140 tagIterator iter = tagHash.find(addr); 141 if (iter != tagHash.end()) { 142 return (*iter).second; 143 } 144 return NULL; 145} 146 |
147bool 148FALRU::probe(Addr addr) const 149{ 150 Addr blkAddr = blkAlign(addr); 151 FALRUBlk* blk = hashLookup(blkAddr); 152 return blk && blk->tag == blkAddr && blk->isValid(); 153} 154 | |
155void 156FALRU::invalidateBlk(FALRU::BlkType *blk) 157{ 158 if (blk) { 159 blk->status = 0; 160 blk->isTouched = false; 161 tagsInUse--; 162 } --- 130 unchanged lines hidden --- | 147void 148FALRU::invalidateBlk(FALRU::BlkType *blk) 149{ 150 if (blk) { 151 blk->status = 0; 152 blk->isTouched = false; 153 tagsInUse--; 154 } --- 130 unchanged lines hidden --- |