1/* 2 * Copyright (c) 2007-2008 The Hewlett-Packard Development Company 3 * All rights reserved. 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 87 unchanged lines hidden (view full) --- 96} 97 98TlbEntry * 99TLB::insert(Addr vpn, TlbEntry &entry) 100{ 101 // If somebody beat us to it, just use that existing entry. 102 TlbEntry *newEntry = trie.lookup(vpn); 103 if (newEntry) { |
104 assert(newEntry->vaddr == vpn); |
105 return newEntry; 106 } 107 108 if (freeList.empty()) 109 evictLRU(); 110 111 newEntry = freeList.front(); 112 freeList.pop_front(); --- 338 unchanged lines hidden --- |