diff --git a/base/hashmap.hh b/base/hashmap.hh index 10089980b2..995e98a901 100644 --- a/base/hashmap.hh +++ b/base/hashmap.hh @@ -57,6 +57,7 @@ namespace m5 { // namespace __hash_namespace { +#if !defined(__LP64__) template<> struct hash { size_t operator()(uint64_t r) const { @@ -65,11 +66,12 @@ namespace __hash_namespace { }; template<> - struct hash { - size_t operator()(Counter r) const { + struct hash { + size_t operator()(int64_t r) const { return r; }; }; +#endif template<> struct hash {