summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/arch/arm/types.hh17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/arch/arm/types.hh b/src/arch/arm/types.hh
index 7b736492b..14cce8294 100644
--- a/src/arch/arm/types.hh
+++ b/src/arch/arm/types.hh
@@ -727,12 +727,17 @@ namespace ArmISA
} // namespace ArmISA
__hash_namespace_begin
- template<>
- struct hash<ArmISA::ExtMachInst> : public hash<uint32_t> {
- size_t operator()(const ArmISA::ExtMachInst &emi) const {
- return hash<uint32_t>::operator()((uint32_t)emi);
- };
- };
+
+template<>
+struct hash<ArmISA::ExtMachInst> :
+ public hash<ArmISA::ExtMachInst::__DataType> {
+
+ size_t operator()(const ArmISA::ExtMachInst &emi) const {
+ return hash<ArmISA::ExtMachInst::__DataType>::operator()(emi);
+ }
+
+};
+
__hash_namespace_end
#endif