diff options
author | Gabe Black <gabeblack@google.com> | 2018-01-06 05:30:46 -0800 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-01-20 07:29:24 +0000 |
commit | cd9450c1d95d9494e2714ec84620c548b0eebbb1 (patch) | |
tree | 1f9ec93031ec2a79ef8dbcefa57b7e44104deed9 /src/arch/arm | |
parent | ecec88750729b2c94d5ca9dedbf7a755c46c41a7 (diff) | |
download | gem5-cd9450c1d95d9494e2714ec84620c548b0eebbb1.tar.xz |
base: Rework bitunions so they can be more flexible.
They are now oriented around a class which makes it easy to provide
custom setter/getter functions which let you set or read bits in an
arbitrary way.
Future additions may add the ability to add custom bitfield methods,
and index-able bitfields.
Change-Id: Ibd6d4d9e49107490f6dad30a4379a8c93bda9333
Reviewed-on: https://gem5-review.googlesource.com/7201
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/arch/arm')
-rw-r--r-- | src/arch/arm/types.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/arm/types.hh b/src/arch/arm/types.hh index eb9a9e801..0611232c4 100644 --- a/src/arch/arm/types.hh +++ b/src/arch/arm/types.hh @@ -741,10 +741,10 @@ namespace std { template<> struct hash<ArmISA::ExtMachInst> : - public hash<ArmISA::ExtMachInst::__DataType> { + public hash<ArmISA::ExtMachInst::__StorageType> { size_t operator()(const ArmISA::ExtMachInst &emi) const { - return hash<ArmISA::ExtMachInst::__DataType>::operator()(emi); + return hash<ArmISA::ExtMachInst::__StorageType>::operator()(emi); } }; |