ARM: entry: Disregard Thumb undef exception in coproc dispatch
authorArd Biesheuvel <ardb@kernel.org>
Sun, 19 Mar 2023 14:18:25 +0000 (15:18 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Wed, 17 May 2023 13:08:22 +0000 (15:08 +0200)
commit8bcba70cb5c2204a011e06278a1fbfb1213e1df1
tree0823e4a46f893894c6ee55152cd599465403f5ef
parentcdd87465adfd75e4ebd11507575533c6bf7a5525
ARM: entry: Disregard Thumb undef exception in coproc dispatch

Now that the only remaining coprocessor instructions being handled via
the dispatch in entry-armv.S are ones that only exist in a ARM (A32)
encoding, we can simplify the handling of Thumb undef exceptions, and
send them straight to the undefined instruction handlers in C code.

This also means we can drop the code that partially decodes the
instruction to decide whether it is a 16-bit or 32-bit Thumb
instruction: this is all taken care of by the undef hook.

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/arm/kernel/entry-armv.S