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

Andy Chiu tchiu at tenstorrent.com
Fri Sep 11 11:23:58 PDT 2026


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




More information about the linux-riscv mailing list