target/arm: Abstract out pbit/wbit tests in ARM ldr/str decode
commit63f26fcfda8e19f94ce23336726d14805250a5b6
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 7 Feb 2017 18:29:59 +0000 (7 18:29 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 7 Feb 2017 18:29:59 +0000 (7 18:29 +0000)
treedb05bcf89f22fa48f039e39764f531376fe62a9f
parent40612000599e52e792d23c998377a0fa429c4036
target/arm: Abstract out pbit/wbit tests in ARM ldr/str decode

In the ARM ldr/str decode path, rather than directly testing
"insn & (1 << 21)" and "insn & (1 << 24)", abstract these
bits out into wbit and pbit local flags. (We will want to
do more tests against them to determine whether we need to
provide syndrome information.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
target/arm/translate.c