|
@@ -972,8 +972,9 @@ static int emulate_instruction(struct pt_regs *regs)
|
|
|
cpu_has_feature(CPU_FTR_DSCR)) {
|
|
|
PPC_WARN_EMULATED(mtdscr, regs);
|
|
|
rd = (instword >> 21) & 0x1f;
|
|
|
- mtspr(SPRN_DSCR, regs->gpr[rd]);
|
|
|
+ current->thread.dscr = regs->gpr[rd];
|
|
|
current->thread.dscr_inherit = 1;
|
|
|
+ mtspr(SPRN_DSCR, current->thread.dscr);
|
|
|
return 0;
|
|
|
}
|
|
|
#endif
|