riscv: add support for sysctl unaligned_enabled control
authorClément Léger <cleger@rivosinc.com>
Wed, 4 Oct 2023 15:14:02 +0000 (17:14 +0200)
committerPalmer Dabbelt <palmer@rivosinc.com>
Wed, 1 Nov 2023 15:34:56 +0000 (08:34 -0700)
commitbc38f61313d316d74c16ce7287d6dba2f42502c9
treef859ddc331fce5ff86bbc4f512c4ffb490b935e0
parent7c586a555a48a952f64d883d2f20402fb61d9164
riscv: add support for sysctl unaligned_enabled control

This sysctl tuning option allows the user to disable misaligned access
handling globally on the system. This will also be used by misaligned
detection code to temporarily disable misaligned access handling.

Signed-off-by: Clément Léger <cleger@rivosinc.com>
Reviewed-by: Björn Töpel <bjorn@rivosinc.com>
Link: https://lore.kernel.org/r/20231004151405.521596-6-cleger@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
arch/riscv/Kconfig
arch/riscv/kernel/traps_misaligned.c