arm64: Fix a dump mistake with rounding modes.

This commit is contained in:
Unknown W. Brackets 2015-06-28 16:35:46 -07:00
parent 920df87621
commit 4d7a948717
2 changed files with 2 additions and 0 deletions

View file

@ -563,6 +563,7 @@ void Arm64Jit::ApplyRoundingMode(bool force) {
// Let's update js.currentRoundingFunc with the right convertS0ToSCRATCH1 func.
MOVP2R(SCRATCH1_64, convertS0ToSCRATCH1);
// We already index this array including the FZ bit. Easy.
LSL(SCRATCH2, SCRATCH2, 3);
LDR(SCRATCH2_64, SCRATCH1_64, SCRATCH2);
MOVP2R(SCRATCH1_64, &js.currentRoundingFunc);
STR(INDEX_UNSIGNED, SCRATCH2_64, SCRATCH1_64, 0);

View file

@ -57,6 +57,7 @@ namespace MIPSComp {
JitState()
: hasSetRounding(0),
lastSetRounding(0),
currentRoundingFunc(nullptr),
startDefaultPrefix(true),
prefixSFlag(PREFIX_UNKNOWN),
prefixTFlag(PREFIX_UNKNOWN),