]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: insn: Allow ADD/SUB (immediate) with LSL #12
authorMarc Zyngier <marc.zyngier@arm.com>
Sun, 3 Dec 2017 17:50:00 +0000 (17:50 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 19 Mar 2018 13:05:13 +0000 (13:05 +0000)
commit19ad8efead9d5364d8fb0230a363edcb895168d6
tree02f756085f8258d087dc0ae1c4196933dc7e2f8a
parentb88829230f67c2e1625bc435854362c6ba310b3c
arm64: insn: Allow ADD/SUB (immediate) with LSL #12

The encoder for ADD/SUB (immediate) can only cope with 12bit
immediates, while there is an encoding for a 12bit immediate shifted
by 12 bits to the left.

Let's fix this small oversight by allowing the LSL_12 bit to be set.

Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/kernel/insn.c