OpcodeDispatcher: transform DF ourselves

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
This commit is contained in:
Alyssa Rosenzweig committed 2025-06-02 14:15:51 -04:00
1 parent ad7844d7da
commit bf3a1839a2
1 file changed
+3 -2
@@ -1146,10 +1146,11 @@ void OpDispatchBuilder::FLAGControlOp(OpcodeArgs) {
SetCFInverted(_Constant(0));
break;
case 0xFC: // CLD
SetRFLAG(_Constant(0), FEXCore::X86State::RFLAG_DF_RAW_LOC);
// Transformed
StoreDF(_Constant(1));
break;
case 0xFD: // STD
SetRFLAG(_Constant(1), FEXCore::X86State::RFLAG_DF_RAW_LOC);
StoreDF(_Constant(-1));
break;
}
}