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 <[email protected]> Reviewed-by: Charlie Jenkins <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent f266106 commit 04a2aef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)