Skip to content

Commit 04a2aef

Browse files
Mr-Bossmanpalmer-dabbelt
authored andcommitted
RISC-V: fix vector insn load/store width mask
RVFDQ_FL_FS_WIDTH_MASK should be 3 bits [14-12], shifted down by 12 bits. Replace GENMASK(3, 0) with GENMASK(2, 0). Fixes: cd05483 ("riscv: Allocate user's vector context in the first-use trap") Signed-off-by: Jesse Taube <jesse@rivosinc.com> Reviewed-by: Charlie Jenkins <charlie@rivosinc.com> Link: https://lore.kernel.org/r/20240606182800.415831-1-jesse@rivosinc.com Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
1 parent f266106 commit 04a2aef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/riscv/include/asm/insn.h

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

146146
/* parts of opcode for RVF, RVD and RVQ */
147147
#define RVFDQ_FL_FS_WIDTH_OFF 12
148-
#define RVFDQ_FL_FS_WIDTH_MASK GENMASK(3, 0)
148+
#define RVFDQ_FL_FS_WIDTH_MASK GENMASK(2, 0)
149149
#define RVFDQ_FL_FS_WIDTH_W 2
150150
#define RVFDQ_FL_FS_WIDTH_D 3
151151
#define RVFDQ_LS_FS_WIDTH_Q 4

0 commit comments

Comments
 (0)