Skip to content

Commit

Permalink
SignalDelegator: Clear TF when running signal handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
bylaws committed Nov 15, 2024
1 parent de18ad3 commit 0d26f2f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ bool SignalDelegator::HandleDispatcherGuestSignal(FEXCore::Core::InternalThreadS

Frame->State.rip = reinterpret_cast<uint64_t>(GuestAction->sigaction_handler.sigaction);
Frame->State.gregs[FEXCore::X86State::REG_RSP] = NewGuestSP;
Frame->State.flags[FEXCore::X86State::RFLAG_TF_RAW_LOC] = 0;

// The guest starts its signal frame with a zero initialized FPU
// Set that up now. Little bit costly but it's a requirement
Expand Down

0 comments on commit 0d26f2f

Please sign in to comment.