target/arm: Use store_reg_from_load in thumb2 code
commit69be3e13764111737e1a7a13bb0c231e4d5be756
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 4 Sep 2019 19:29:51 +0000 (4 12:29 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 5 Sep 2019 12:23:03 +0000 (5 13:23 +0100)
treed699ca2b5f84e781adb8bb0cf08f1f8604bff549
parent500efcfcf0fe2e0dae1d25637a13435ce7b6e421
target/arm: Use store_reg_from_load in thumb2 code

This function already includes the test for an interworking write
to PC from a load.  Change the T32 LDM implementation to match the
A32 LDM implementation.

For LDM, the reordering of the tests does not change valid
behaviour because the only case that differs is has rn == 15,
which is UNPREDICTABLE.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20190904193059.26202-2-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/translate.c