xtensa: always install slow handler for unaligned access exception
authorMax Filippov <jcmvbkbc@gmail.com>
Wed, 14 Jun 2023 03:45:53 +0000 (20:45 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Wed, 14 Jun 2023 04:56:27 +0000 (21:56 -0700)
commit3522bcfe1ecd48b9db1bbecec5f27010f77b639b
treeaf938cc3fe2b441f1ea890e902e809b4fffe7ff2
parent67e886229e27e80253e1ff9025a74a3dce941f17
xtensa: always install slow handler for unaligned access exception

Currently slow handler for unaligned access exception is not installed
when CPU has hardware support for unaligned access. However some opcodes
(e.g. l32ai, s32ri, s32c1i) would still raise unaligned access exception
even on such CPUs. In that case instead of SIGBUS and a diagnostic entry
in the kernel log the faulting process would receive SIGILL.
Always install slow handler for unaligned access exception to fix that.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/kernel/traps.c