]> xenbits.xensource.com Git - qemu-xen.git/commit
target/arm: Don't allow BLX imm for M-profile
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 19 Oct 2020 15:12:56 +0000 (16:12 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 20 Oct 2020 15:12:01 +0000 (16:12 +0100)
commit920f04fa3ea789f8f85a52cee5395b8887b56cf7
tree635050ab3df6abb871fc452184d04c3a2ae7a813
parent45f11876ae86128bdee27e0b089045de43cc88e4
target/arm: Don't allow BLX imm for M-profile

The BLX immediate insn in the Thumb encoding always performs
a switch from Thumb to Arm state. This would be totally useless
in M-profile which has no Arm decoder, and so the instruction
does not exist at all there. Make the encoding UNDEF for M-profile.

(This part of the encoding space is used for the branch-future
and low-overhead-loop insns in v8.1M.)

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