summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2015-01-07 00:31:46 -0800
committerGabe Black <gabeblack@google.com>2015-01-07 00:31:46 -0800
commit86dea86987ef61192deca4d2f1a980893f50e092 (patch)
tree7681649cfe2f9d0cb464dc2252e657c1acb7e3d7 /util
parentd0284544ec339808c2273ced3ebc566cad285a4a (diff)
downloadgem5-86dea86987ef61192deca4d2f1a980893f50e092.tar.xz
base: Fix assigning between identical bitfields.
If two bitfields are of the same type, also implying that they have the same first and last bit positions, the existing implementation would copy the entire bitfield. That includes the __data member which is shared among all the bitfields, effectively overwritting the entire bitunion. This change also adjusts the write only signed bitfield assignment operator to be like the unsigned version, using "using" instead of implementing it again and calling down to the underlying implementation.
Diffstat (limited to 'util')
0 files changed, 0 insertions, 0 deletions