PersistentTable.hh (10441:5377550e1e15) | PersistentTable.hh (11025:4872dbdea907) |
---|---|
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; --- 44 unchanged lines hidden (view full) --- 53 public: 54 // Constructors 55 PersistentTable(); 56 57 // Destructor 58 ~PersistentTable(); 59 60 // Public Methods | 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; --- 44 unchanged lines hidden (view full) --- 53 public: 54 // Constructors 55 PersistentTable(); 56 57 // Destructor 58 ~PersistentTable(); 59 60 // Public Methods |
61 void persistentRequestLock(const Address& address, MachineID locker, | 61 void persistentRequestLock(Addr address, MachineID locker, |
62 AccessType type); | 62 AccessType type); |
63 void persistentRequestUnlock(const Address& address, MachineID unlocker); 64 bool okToIssueStarving(const Address& address, MachineID machID) const; 65 MachineID findSmallest(const Address& address) const; 66 AccessType typeOfSmallest(const Address& address) const; 67 void markEntries(const Address& address); 68 bool isLocked(const Address& addr) const; 69 int countStarvingForAddress(const Address& addr) const; 70 int countReadStarvingForAddress(const Address& addr) const; | 63 void persistentRequestUnlock(Addr address, MachineID unlocker); 64 bool okToIssueStarving(Addr address, MachineID machID) const; 65 MachineID findSmallest(Addr address) const; 66 AccessType typeOfSmallest(Addr address) const; 67 void markEntries(Addr address); 68 bool isLocked(Addr addr) const; 69 int countStarvingForAddress(Addr addr) const; 70 int countReadStarvingForAddress(Addr addr) const; |
71 72 void print(std::ostream& out) const; 73 74 private: 75 // Private copy constructor and assignment operator 76 PersistentTable(const PersistentTable& obj); 77 PersistentTable& operator=(const PersistentTable& obj); 78 79 // Data Members (m_prefix) | 71 72 void print(std::ostream& out) const; 73 74 private: 75 // Private copy constructor and assignment operator 76 PersistentTable(const PersistentTable& obj); 77 PersistentTable& operator=(const PersistentTable& obj); 78 79 // Data Members (m_prefix) |
80 typedef m5::hash_map<Address, PersistentTableEntry> AddressMap; | 80 typedef m5::hash_map |
81 AddressMap m_map; 82}; 83 84inline std::ostream& 85operator<<(std::ostream& out, const PersistentTable& obj) 86{ 87 obj.print(out); 88 out << std::flush; --- 12 unchanged lines hidden --- | 81 AddressMap m_map; 82}; 83 84inline std::ostream& 85operator<<(std::ostream& out, const PersistentTable& obj) 86{ 87 obj.print(out); 88 out << std::flush; --- 12 unchanged lines hidden --- |