riscv: Fix enabling cbo.zero when running in M-mode
commit 3fb3f716 upstream. When the kernel is running in M-mode, the CBZE bit must be set in the menvcfg CSR, not in senvcfg. Cc: <stable@vger.kernel.org> Fixes: 43c16d51 ("RISC-V: Enable cbo.zero in usermode") Reviewed-by:Andrew Jones <ajones@ventanamicro.com> Signed-off-by:
Samuel Holland <samuel.holland@sifive.com> Reviewed-by:
Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20240228065559.3434837-2-samuel.holland@sifive.com Signed-off-by:
Palmer Dabbelt <palmer@rivosinc.com> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Loading
Please sign in to comment