arm64: BTI: Reset BTYPE when skipping emulated instructions
authorDave Martin <Dave.Martin@arm.com>
Mon, 16 Mar 2020 16:50:51 +0000 (16:50 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 16 Mar 2020 17:19:49 +0000 (17:19 +0000)
commit0537c4cd71e3c729c278c82f5b088460fb66fc33
tree0200b41d14892d1bc98ae1ca6083361c244e8c3a
parentd2c2ee4cc33bea814eb6739f14d8cb6a4b5265bb
arm64: BTI: Reset BTYPE when skipping emulated instructions

Since normal execution of any non-branch instruction resets the
PSTATE BTYPE field to 0, so do the same thing when emulating a
trapped instruction.

Branches don't trap directly, so we should never need to assign a
non-zero value to BTYPE here.

Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/traps.c