tlb.cc (9180:ee8d7a51651d) | tlb.cc (9423:43caa4ca5979) |
---|---|
1/* 2 * Copyright (c) 2001-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; --- 309 unchanged lines hidden (view full) --- 318 usedEntries--; 319 } 320 lookupTable.erase(tlb[x].range); 321 } 322 } 323} 324 325void | 1/* 2 * Copyright (c) 2001-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; --- 309 unchanged lines hidden (view full) --- 318 usedEntries--; 319 } 320 lookupTable.erase(tlb[x].range); 321 } 322 } 323} 324 325void |
326TLB::invalidateAll() | 326TLB::flushAll() |
327{ 328 cacheValid = false; 329 lookupTable.clear(); 330 331 for (int x = 0; x < size; x++) { 332 if (tlb[x].valid == true) 333 freeList.push_back(&tlb[x]); 334 tlb[x].valid = false; --- 1089 unchanged lines hidden --- | 327{ 328 cacheValid = false; 329 lookupTable.clear(); 330 331 for (int x = 0; x < size; x++) { 332 if (tlb[x].valid == true) 333 freeList.push_back(&tlb[x]); 334 tlb[x].valid = false; --- 1089 unchanged lines hidden --- |