Skip to content

Commit

Permalink
Reverse order of FPSCR restore
Browse files Browse the repository at this point in the history
  • Loading branch information
hainest committed Mar 2, 2023
1 parent 3c6af30 commit d06e428
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dyninstAPI/src/inst-power.C
Original file line number Diff line number Diff line change
Expand Up @@ -1003,6 +1003,8 @@ unsigned restoreSPRegisters(codeGen &gen,
fpscr_off = STK_FP_CR_64;
}

restoreFPSCR(gen, 10, save_off + fpscr_off); num_restored++;

registerSlot *regXER = (*(gen.rs()))[registerSpace::xer];
assert (regXER != NULL);
if (force_save || regXER->liveState == registerSlot::spilled)
Expand All @@ -1021,7 +1023,6 @@ unsigned restoreSPRegisters(codeGen &gen,
{
restoreCR(gen, 10, save_off + cr_off); num_restored++;
}
restoreFPSCR(gen, 10, save_off + fpscr_off); num_restored++;

return num_restored;
}
Expand Down

0 comments on commit d06e428

Please sign in to comment.