summaryrefslogtreecommitdiffstats
path: root/arch/riscv/include/asm/ptrace.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv/include/asm/ptrace.h')
-rw-r--r--arch/riscv/include/asm/ptrace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/include/asm/ptrace.h b/arch/riscv/include/asm/ptrace.h
index 93b8956e25e4..2c5df945d43c 100644
--- a/arch/riscv/include/asm/ptrace.h
+++ b/arch/riscv/include/asm/ptrace.h
@@ -66,7 +66,7 @@ struct pt_regs {
#define REG_FMT "%08lx"
#endif
-#define user_mode(regs) (((regs)->sstatus & SR_PS) == 0)
+#define user_mode(regs) (((regs)->sstatus & SR_SPP) == 0)
/* Helpers for working with the instruction pointer */