xtensa: fix unaligned and load/store configuration interaction
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 10 Jul 2023 22:13:27 +0000 (15:13 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Tue, 11 Jul 2023 04:41:04 +0000 (21:41 -0700)
commita160e9414d8a1747225206558b24d7df513b3c8d
tree6c50ed03f217f1253c7d80272494958d62b43cd1
parentbc8d5916541fa19ca5bc598eb51a5f78eb891a36
xtensa: fix unaligned and load/store configuration interaction

Unaligned exception handler is needed in configurations with hardware
support for unaligned access when the load/store exception handler is
enabled because such configurations would still raise an exception on
unaligned access through the instruction bus.

Fixes: f29cf77609cc ("xtensa: add load/store exception handler")
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/kernel/align.S
arch/xtensa/kernel/traps.c