Skip to content
Unverified Commit 8cb22bec authored by Nam Cao's avatar Nam Cao Committed by Palmer Dabbelt
Browse files

riscv: kprobes: allow writing to x0



Instructions can write to x0, so we should simulate these instructions
normally.

Currently, the kernel hangs if an instruction who writes to x0 is
simulated.

Fixes: c22b0bcb ("riscv: Add kprobes supported")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarNam Cao <namcaov@gmail.com>
Reviewed-by: default avatarCharlie Jenkins <charlie@rivosinc.com>
Acked-by: default avatarGuo Ren <guoren@kernel.org>
Link: https://lore.kernel.org/r/20230829182500.61875-1-namcaov@gmail.com


Signed-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
parent b701f9e7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment