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.
This commit is contained in:
Andreas Hansson 2014-09-03 07:42:19 -04:00
parent fa1fbcf020
commit 1046b8d6e5

View file

@ -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