diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c index 1ee5357d0c6aee8c87a6a77455a1f47859995ab6..abda8e861865779d96087b3de57d60305d26e582 100644 --- a/arch/arm64/kernel/cpufeature.c +++ b/arch/arm64/kernel/cpufeature.c @@ -1214,7 +1214,7 @@ static int emulate_mrs(struct pt_regs *regs, u32 insn) rc = emulate_sys_reg(sys_reg, &val); if (!rc) { dst = aarch64_insn_decode_register(AARCH64_INSN_REGTYPE_RT, insn); - regs->user_regs.regs[dst] = val; + pt_regs_write_reg(regs, dst, val); regs->pc += 4; }