summaryrefslogtreecommitdiff
path: root/src/arch/mips/linux
diff options
context:
space:
mode:
authorAndreas Sandberg <Andreas.Sandberg@ARM.com>2014-08-26 10:13:28 -0400
committerAndreas Sandberg <Andreas.Sandberg@ARM.com>2014-08-26 10:13:28 -0400
commit61b8d5e4e4b27010f5dd757a34e7295bb5dd10ff (patch)
tree04092d104f18cd22dc58214fed8bf847d07d6844 /src/arch/mips/linux
parenta3d3eb0ff777e0580aa30f52f31958a090cbe3af (diff)
downloadgem5-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/arch/mips/linux')
0 files changed, 0 insertions, 0 deletions