Fix one more case of computing the return EPC after the registers have
already been modified. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
6dd0468852
commit
05b8042ac6
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user