MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / POPFOp

Method POPFOp

FEXCore/Source/Interface/Core/OpcodeDispatcher.cpp:3597–3612  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3595}
3596
3597void OpDispatchBuilder::POPFOp(OpcodeArgs) {
3598 const auto Size = OpSizeFromSrc(Op);
3599 Ref Src = Pop(Size);
3600
3601 // Add back our flag constants
3602 // Bit 1 is always 1
3603 // Bit 9 is always 1 because we always have interrupts enabled
3604
3605 Src = _Or(OpSize::i64Bit, Src, Constant(0x202));
3606
3607 SetPackedRFLAG(false, Src);
3608
3609 auto NewRIP = GetRelocatedPC(Op);
3610 ExitFunction(NewRIP, BranchHint::CheckTF);
3611 BlockSetRIP = true;
3612}
3613
3614void OpDispatchBuilder::NEGOp(OpcodeArgs) {
3615 HandledLock = (Op->Flags & FEXCore::X86Tables::DecodeFlags::FLAG_LOCK) != 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected