[PATCH v1 0/2] riscv: runtime enablement for native misaligned ucopy

From: Andy Chiu

Date: Fri Sep 11 2026 - 14:31:30 EST


This series is the continued series for commit b94cec5761d2 ("riscv:
skip software algning code for HAVE_EFFICIENT_UNALIGNED_ACCESS") that
makes the optimization available to distro kernels compiled without
NONPORTABLE config. Now, the kernel can skip the software aligning code
in ucopy after fast unaligned access is detected at runtime.

Andy Chiu (2):
riscv: introduce assembly version of jump table
riscv: optmize ucopy for has_fast_unaligned_accesses

arch/riscv/include/asm/jump_label.h | 26 ++++++++++++
arch/riscv/lib/uaccess.S | 61 ++++++++++++++++-------------
2 files changed, 60 insertions(+), 27 deletions(-)

--
2.43.0