]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
riscv: Fix the __riscv_copy_vec_words_unaligned implementation
authorTingbo Liao <tingbo.liao@starfivetech.com>
Fri, 28 Feb 2025 09:08:01 +0000 (01:08 -0800)
committerAlexandre Ghiti <alexghiti@rivosinc.com>
Tue, 18 Mar 2025 13:37:27 +0000 (13:37 +0000)
Correct the VEC_S macro definition to fix the implementation
of vector words copy in the case of unalignment in RISC-V.

Fixes: e7c9d66e313b ("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>
arch/riscv/kernel/vec-copy-unaligned.S

index d16f19f1b3b65f6b45d8a48160cf79b510ceec7e..7ce4de6f6e694a6ffb737e0cd0e3f32de1021995 100644 (file)
@@ -11,7 +11,7 @@
 
 #define WORD_SEW CONCATENATE(e, WORD_EEW)
 #define VEC_L CONCATENATE(vle, WORD_EEW).v
-#define VEC_S CONCATENATE(vle, WORD_EEW).v
+#define VEC_S CONCATENATE(vse, WORD_EEW).v
 
 /* void __riscv_copy_vec_words_unaligned(void *, const void *, size_t) */
 /* Performs a memcpy without aligning buffers, using word loads and stores. */