From 1046b8d6e5303fa4fede2d7c0712ef0719c82eb7 Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Wed, 3 Sep 2014 07:42:19 -0400 Subject: arm: Fix ExtMachInst hash operator underlying type This patch fixes the hash operator used for ARM ExtMachInst, which incorrectly was still using uint32_t. Instead of changing it to uint64_t it is not using the underlying data type of the BitUnion. --- src/arch/arm/types.hh | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'src/arch/arm') 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 : public hash { - size_t operator()(const ArmISA::ExtMachInst &emi) const { - return hash::operator()((uint32_t)emi); - }; - }; + +template<> +struct hash : + public hash { + + size_t operator()(const ArmISA::ExtMachInst &emi) const { + return hash::operator()(emi); + } + +}; + __hash_namespace_end #endif -- cgit v1.2.3