Searched hist:10640 (Results 1 - 1 of 1) sorted by relevance

/gem5/src/base/
H A Dbitunion.hhdiff 10640:edbc52a43cd8 Wed Jan 07 03:31:00 EST 2015 Gabe Black <gabeblack@google.com> 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.

Completed in 5 milliseconds