target-arm: Don't check for "Thumb2 or M profile" for not-Thumb1
commit6b8acf256df09c8a8dd7dcaa79b06eaff4ad63f7
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 9 Oct 2017 13:48:35 +0000 (9 14:48 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 12 Oct 2017 12:23:14 +0000 (12 13:23 +0100)
treeb511012e041a0040c4c24c933e78f9a8c146ba54
parentd02a8698d7ae2bfed3b11fe5b064cb0aa406863b
target-arm: Don't check for "Thumb2 or M profile" for not-Thumb1

The code which implements the Thumb1 split BL/BLX instructions
is guarded by a check on "not M or THUMB2". All we really need
to check here is "not THUMB2" (and we assume that elsewhere too,
eg in the ARCH(6T2) test that UNDEFs the Thumb2 insns).

This doesn't change behaviour because all M profile cores
have Thumb2 and so ARM_FEATURE_M implies ARM_FEATURE_THUMB2.
(v6M implements a very restricted subset of Thumb2, but we
can cross that bridge when we get to it with appropriate
feature bits.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 1507556919-24992-6-git-send-email-peter.maydell@linaro.org
target/arm/translate.c