ruyisdk / linux-xuantie-kernel

Other
18 stars 26 forks source link

RISC-V: fix vector insn load/store width mask #134

Closed RevySR closed 3 months ago

RevySR commented 3 months ago

[ commit: 04a2aef59cfe192aa99020601d922359978cc72a ]

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")

Reviewed-by: Charlie Jenkins charlie@rivosinc.com Link: https://lore.kernel.org/r/20240606182800.415831-1-jesse@rivosinc.com