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:
parent
fa1fbcf020
commit
1046b8d6e5
1 changed files with 11 additions and 6 deletions
|
@ -727,12 +727,17 @@ namespace ArmISA
|
||||||
} // namespace ArmISA
|
} // namespace ArmISA
|
||||||
|
|
||||||
__hash_namespace_begin
|
__hash_namespace_begin
|
||||||
template<>
|
|
||||||
struct hash<ArmISA::ExtMachInst> : public hash<uint32_t> {
|
template<>
|
||||||
size_t operator()(const ArmISA::ExtMachInst &emi) const {
|
struct hash<ArmISA::ExtMachInst> :
|
||||||
return hash<uint32_t>::operator()((uint32_t)emi);
|
public hash<ArmISA::ExtMachInst::__DataType> {
|
||||||
};
|
|
||||||
};
|
size_t operator()(const ArmISA::ExtMachInst &emi) const {
|
||||||
|
return hash<ArmISA::ExtMachInst::__DataType>::operator()(emi);
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
__hash_namespace_end
|
__hash_namespace_end
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue