diff options
author | Andreas Sandberg <Andreas.Sandberg@ARM.com> | 2014-08-26 10:13:28 -0400 |
---|---|---|
committer | Andreas Sandberg <Andreas.Sandberg@ARM.com> | 2014-08-26 10:13:28 -0400 |
commit | 61b8d5e4e4b27010f5dd757a34e7295bb5dd10ff (patch) | |
tree | 04092d104f18cd22dc58214fed8bf847d07d6844 /src/base/barrier.hh | |
parent | a3d3eb0ff777e0580aa30f52f31958a090cbe3af (diff) | |
download | gem5-61b8d5e4e4b27010f5dd757a34e7295bb5dd10ff.tar.xz |
base: Add a static assert to check bit union ranges
If a bit field in a bit union specified as Bitfield<LSB, MSB> instead
of Bitfield<MSB, LSB> the code silently fails and the field is read as
zero. This changeset introduces a static assert that tests, at compile
time, that the bit order is correct.
Diffstat (limited to 'src/base/barrier.hh')
0 files changed, 0 insertions, 0 deletions