]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RISC-V: fix vector insn load/store width mask
authorJesse Taube <jesse@rivosinc.com>
Thu, 6 Jun 2024 18:28:00 +0000 (14:28 -0400)
committerPalmer Dabbelt <palmer@rivosinc.com>
Tue, 25 Jun 2024 15:47:10 +0000 (08:47 -0700)
commit04a2aef59cfe192aa99020601d922359978cc72a
treeac4ea652a5133364a7bbc37b0b4fff05848ea75e
parentf2661062f16b2de5d7b6a5c42a9a5c96326b8454
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: cd054837243b ("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>
arch/riscv/include/asm/insn.h