diff options
author | Nathan Binkert <binkertn@umich.edu> | 2003-12-09 17:41:08 -0500 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2003-12-09 17:41:08 -0500 |
commit | 06aafccce712a273268283dfc2d8ab3733538173 (patch) | |
tree | c3cbb61ec086882d6827ea6b39a3a8745139f7ec /base | |
parent | 368de4109f9decca72faac1a6eb0909da712f43f (diff) | |
download | gem5-06aafccce712a273268283dfc2d8ab3733538173.tar.xz |
Make the simulator compile on an Itanium.
base/hashmap.hh:
Not all machines need these extra hash functions
also make Counter int64_t since that's really what is needed
--HG--
extra : convert_revision : b5b5d65db157d01d76adbf4de4882b1516c9f2e7
Diffstat (limited to 'base')
-rw-r--r-- | base/hashmap.hh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/base/hashmap.hh b/base/hashmap.hh index 10089980b..995e98a90 100644 --- a/base/hashmap.hh +++ b/base/hashmap.hh @@ -57,6 +57,7 @@ namespace m5 { // namespace __hash_namespace { +#if !defined(__LP64__) template<> struct hash<uint64_t> { size_t operator()(uint64_t r) const { @@ -65,11 +66,12 @@ namespace __hash_namespace { }; template<> - struct hash<Counter> { - size_t operator()(Counter r) const { + struct hash<int64_t> { + size_t operator()(int64_t r) const { return r; }; }; +#endif template<> struct hash<std::string> { |