Skip to content

[SIGNAL] Preserve TF handling when resuming signals with Dynarec - #4174

Merged
ptitSeb merged 1 commit into
ptitSeb:mainfrom
Mikura-Kyouka:tf-interpreter
Aug 2, 2026
Merged

[SIGNAL] Preserve TF handling when resuming signals with Dynarec#4174
ptitSeb merged 1 commit into
ptitSeb:mainfrom
Mikura-Kyouka:tf-interpreter

Conversation

@Mikura-Kyouka

Copy link
Copy Markdown
Contributor

When a signal handler restores a context with TF set, resume through the interpreter for one instruction so no_tf can suppress the initial spurious SIGTRAP.

This fixes the issue exposed after commit 38d64ba when running Syringe.exe from the Ares expansion platform.

When a signal handler restores a context with TF set, resume through the interpreter for one instruction so no_tf can suppress the initial spurious SIGTRAP.

This fixes the issue exposed after commit 38d64ba when running Syringe.exe from the Ares expansion platform.
@Mikura-Kyouka
Mikura-Kyouka marked this pull request as ready for review August 2, 2026 05:54
@ksco

ksco commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

Why not just revert 38d64ba?

@ksco

ksco commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

Related PR: #3951

Basically, commit 38d64ba broke #3951.

@ksco ksco left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR looks legit to me, but maybe we should just revert the offending commit.

@ptitSeb

ptitSeb commented Aug 2, 2026

Copy link
Copy Markdown
Owner

Well, commit 38d64ba should bring some slight speedup for regular signal handling, especialy for DRM that use a lot of segfault, so I prefer to use that PR instead of reversing the other.

@ptitSeb
ptitSeb merged commit fb5294a into ptitSeb:main Aug 2, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants