diff options
author | Nathan Binkert <nate@binkert.org> | 2010-06-10 23:17:07 -0700 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2010-06-10 23:17:07 -0700 |
commit | 3df84fd8a0ce3959c0deb4c206d910fc0d050f47 (patch) | |
tree | e9532570ee56986f92c40511f1fc83991d6691c9 /src/mem/ruby/system/TimerTable.hh | |
parent | 006818aeea6176c4500c5f7414e9f2a822c77062 (diff) | |
download | gem5-3df84fd8a0ce3959c0deb4c206d910fc0d050f47.tar.xz |
ruby: get rid of the Map class
Diffstat (limited to 'src/mem/ruby/system/TimerTable.hh')
-rw-r--r-- | src/mem/ruby/system/TimerTable.hh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mem/ruby/system/TimerTable.hh b/src/mem/ruby/system/TimerTable.hh index 4c1d2afa3..f78d93956 100644 --- a/src/mem/ruby/system/TimerTable.hh +++ b/src/mem/ruby/system/TimerTable.hh @@ -33,7 +33,7 @@ #include <iostream> #include <string> -#include "mem/gems_common/Map.hh" +#include "base/hashmap.hh" #include "mem/ruby/common/Address.hh" #include "mem/ruby/common/Global.hh" @@ -61,7 +61,7 @@ class TimerTable bool isReady() const; const Address& readyAddress() const; - bool isSet(const Address& address) const { return m_map.exist(address); } + bool isSet(const Address& address) const { return !!m_map.count(address); } void set(const Address& address, Time relative_latency); void unset(const Address& address); void print(std::ostream& out) const; @@ -74,7 +74,8 @@ class TimerTable TimerTable& operator=(const TimerTable& obj); // Data Members (m_prefix) - Map<Address, Time> m_map; + typedef m5::hash_map<Address, Time> AddressMap; + AddressMap m_map; mutable bool m_next_valid; mutable Time m_next_time; // Only valid if m_next_valid is true mutable Address m_next_address; // Only valid if m_next_valid is true |