TBETable.hh (11025:4872dbdea907) | TBETable.hh (11111:6da33e720481) |
---|---|
1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 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; --- 33 unchanged lines hidden (view full) --- 42 : m_number_of_TBEs(number_of_TBEs) 43 { 44 } 45 46 bool isPresent(Addr address) const; 47 void allocate(Addr address); 48 void deallocate(Addr address); 49 bool | 1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 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; --- 33 unchanged lines hidden (view full) --- 42 : m_number_of_TBEs(number_of_TBEs) 43 { 44 } 45 46 bool isPresent(Addr address) const; 47 void allocate(Addr address); 48 void deallocate(Addr address); 49 bool |
50 areNSlotsAvailable(int n) const | 50 areNSlotsAvailable(int n, Tick current_time) const |
51 { 52 return (m_number_of_TBEs - m_map.size()) >= n; 53 } 54 | 51 { 52 return (m_number_of_TBEs - m_map.size()) >= n; 53 } 54 |
55 ENTRY* lookup(Addr address); | 55 ENTRY *lookup(Addr address); |
56 57 // Print cache contents 58 void print(std::ostream& out) const; 59 60 private: 61 // Private copy constructor and assignment operator 62 TBETable(const TBETable& obj); 63 TBETable& operator=(const TBETable& obj); --- 61 unchanged lines hidden --- | 56 57 // Print cache contents 58 void print(std::ostream& out) const; 59 60 private: 61 // Private copy constructor and assignment operator 62 TBETable(const TBETable& obj); 63 TBETable& operator=(const TBETable& obj); --- 61 unchanged lines hidden --- |