Commit 05b8042a authored by Ralf Baechle's avatar Ralf Baechle

Fix one more case of computing the return EPC after the registers have

already been modified.
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 6dd04688
...@@ -447,9 +447,9 @@ static inline void simulate_sc(struct pt_regs *regs, unsigned int opcode) ...@@ -447,9 +447,9 @@ static inline void simulate_sc(struct pt_regs *regs, unsigned int opcode)
preempt_disable(); preempt_disable();
if (ll_bit == 0 || ll_task != current) { if (ll_bit == 0 || ll_task != current) {
compute_return_epc(regs);
regs->regs[reg] = 0; regs->regs[reg] = 0;
preempt_enable(); preempt_enable();
compute_return_epc(regs);
return; return;
} }
......
Markdown is supported
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