We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcec538 commit 5868347Copy full SHA for 5868347
arch/mips/kernel/traps.c
@@ -723,12 +723,14 @@ static int simulate_loongson3_cpucfg(struct pt_regs *regs,
723
perf_sw_event(PERF_COUNT_SW_EMULATION_FAULTS, 1, regs, 0);
724
725
/* Do not emulate on unsupported core models. */
726
- if (!loongson3_cpucfg_emulation_enabled(¤t_cpu_data))
+ preempt_disable();
727
+ if (!loongson3_cpucfg_emulation_enabled(¤t_cpu_data)) {
728
+ preempt_enable();
729
return -1;
-
730
+ }
731
regs->regs[rd] = loongson3_cpucfg_read_synthesized(
732
¤t_cpu_data, sel);
733
734
return 0;
735
}
736
0 commit comments