Skip to content

Commit 475afa3

Browse files
Tingbo LiaoAlexandre Ghiti
authored andcommitted
riscv: Fix the __riscv_copy_vec_words_unaligned implementation
Correct the VEC_S macro definition to fix the implementation of vector words copy in the case of unalignment in RISC-V. Fixes: e7c9d66 ("RISC-V: Report vector unaligned access speed hwprobe") Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com> Signed-off-by: Tingbo Liao <tingbo.liao@starfivetech.com> Link: https://lore.kernel.org/r/20250228090801.8334-1-tingbo.liao@starfivetech.com Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
1 parent eb8db42 commit 475afa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/kernel/vec-copy-unaligned.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#define WORD_SEW CONCATENATE(e, WORD_EEW)
1313
#define VEC_L CONCATENATE(vle, WORD_EEW).v
14-
#define VEC_S CONCATENATE(vle, WORD_EEW).v
14+
#define VEC_S CONCATENATE(vse, WORD_EEW).v
1515

1616
/* void __riscv_copy_vec_words_unaligned(void *, const void *, size_t) */
1717
/* Performs a memcpy without aligning buffers, using word loads and stores. */

0 commit comments

Comments
 (0)