diff options
| author | Tingbo Liao <tingbo.liao@starfivetech.com> | 2025-02-28 01:08:01 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-04-10 14:44:37 +0200 |
| commit | dc7f11838b55b6c5bc06505c86c11a380e0d8fa2 (patch) | |
| tree | 2d37f04b1460aa04f30a936e0045b90a40afd09f /arch/riscv/kernel | |
| parent | 29838dedb0f069d27a9ad8b9b4f9ea0b7142715e (diff) | |
| download | linux-dc7f11838b55b6c5bc06505c86c11a380e0d8fa2.tar.gz linux-dc7f11838b55b6c5bc06505c86c11a380e0d8fa2.tar.bz2 linux-dc7f11838b55b6c5bc06505c86c11a380e0d8fa2.zip | |
riscv: Fix the __riscv_copy_vec_words_unaligned implementation
[ Upstream commit 475afa39b123699e910c61ad9a51cedce4a0d310 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/riscv/kernel')
| -rw-r--r-- | arch/riscv/kernel/vec-copy-unaligned.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/kernel/vec-copy-unaligned.S b/arch/riscv/kernel/vec-copy-unaligned.S index d16f19f1b3b6..7ce4de6f6e69 100644 --- a/arch/riscv/kernel/vec-copy-unaligned.S +++ b/arch/riscv/kernel/vec-copy-unaligned.S @@ -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. */ |
