misc: Fix issues flagged by gcc 6
authorAndreas Hansson <andreas.hansson@arm.com>
Wed, 13 Apr 2016 16:13:44 +0000 (12:13 -0400)
committerAndreas Hansson <andreas.hansson@arm.com>
Wed, 13 Apr 2016 16:13:44 +0000 (12:13 -0400)
commit8127c4e7bf5fa95b3d06dd0e10ca5b7d32261064
treecd4ec3f82a01a2ae2ed07b8ddb11150463fbe88e
parent4b802a09c52ca2a2274a232ba5a29936de8ec3a9
misc: Fix issues flagged by gcc 6

A few warnings (and thus errors) pop up after being added to -Wall:

1. -Wmisleading-indentation

In the auto-generated code there were instances of if/else blocks that
were not indented to gcc's liking. This is addressed by adding braces.

2. -Wshift-negative-value

gcc is clever enougn to consider ~0 a negative constant, and
rightfully complains. This is addressed by using mask() which
explicitly casts to unsigned before shifting.

That is all. Porting done.
src/arch/arm/isa/insts/neon.isa
src/mem/ruby/system/DMASequencer.cc