arch-x86, arch-power: fix calls to bits and insertBits
authorMatt Sinclair <mattdsinclair@gmail.com>
Fri, 4 May 2018 05:53:07 +0000 (01:53 -0400)
committerMatt Sinclair <mattdsinclair@gmail.com>
Tue, 8 May 2018 21:53:00 +0000 (21:53 +0000)
commitc1a2905aa22a7f46a50cb9b86a265923d6af341b
tree139409e59a6831bb0ca2756273d4a0d4282ec4c1
parent0b0629cda6cbb4fdc1c1087c762c27c426e8a1c9
arch-x86, arch-power: fix calls to bits and insertBits

The bits and insertBits assume the first bit is the larger bit and the last
bit is the smaller bit.  This commit fixes several X86 and Power calls to
these functions that incorrectly assumed that first was the smaller bit.

Change-Id: I2b5354d1b9ca66e3436c4a72042416a6ce6dec01
Reviewed-on: https://gem5-review.googlesource.com/10241
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/arch/power/isa/decoder.isa
src/arch/x86/isa.cc