fa_lru.cc (5706:2cc2387049bc) fa_lru.cc (5716:ee56bb539212)
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;

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

150 if (blk) {
151 blk->status = 0;
152 blk->isTouched = false;
153 tagsInUse--;
154 }
155}
156
157FALRUBlk*
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;

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

150 if (blk) {
151 blk->status = 0;
152 blk->isTouched = false;
153 tagsInUse--;
154 }
155}
156
157FALRUBlk*
158FALRU::findBlock(Addr addr, int &lat, int *inCache)
158FALRU::accessBlock(Addr addr, int &lat, int *inCache)
159{
160 accesses++;
161 int tmp_in_cache = 0;
162 Addr blkAddr = blkAlign(addr);
163 FALRUBlk* blk = hashLookup(blkAddr);
164
165 if (blk && blk->isValid()) {
166 assert(blk->tag == blkAddr);

--- 118 unchanged lines hidden ---
159{
160 accesses++;
161 int tmp_in_cache = 0;
162 Addr blkAddr = blkAlign(addr);
163 FALRUBlk* blk = hashLookup(blkAddr);
164
165 if (blk && blk->isValid()) {
166 assert(blk->tag == blkAddr);

--- 118 unchanged lines hidden ---