summaryrefslogtreecommitdiff
path: root/lib/utils
diff options
context:
space:
mode:
authorMichael Ellerman <[email protected]>2026-05-30 00:42:18 +1000
committerAnup Patel <[email protected]>2026-06-15 10:21:03 +0530
commit1157eb37e29500b5e30d4c70bda6979fb516c7fc (patch)
tree659aea11613fb30590eb4520b2367fd45fa16528 /lib/utils
parentdec9141a77058dc941f2d0f07107f7306a995c35 (diff)
lib: sbi_trap_v_ldst: Redirect unhandled traps
When SBI is built with a compiler that doesn't support vector, the misaligned vector load/store emulation is not built in, the handlers are just stubs. Currently the stubs just return 0, causing sbi_trap_emulate_load() to return without incrementing mepc, meaning the instruction will just fault again, an infinite loop. Fix the stubs to use sbi_trap_redirect(), which forwards the trap to the previous mode, allowing it to be handled there. Fixes: c2acc5e5 ("lib: sbi_misaligned_ldst: Add handling of vector load/store") Signed-off-by: Michael Ellerman <[email protected]> Reviewed-by: Anup Patel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib/utils')
0 files changed, 0 insertions, 0 deletions