Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PPU: Sleep after returning from thread entry function #13966

Merged
merged 2 commits into from Jun 6, 2023

Conversation

elad335
Copy link
Contributor

@elad335 elad335 commented Jun 6, 2023

I tested what happens if I let a thread return without calling sys_ppu_thread_exit, at first when a debugger was attached the process was paused.
But after detaching it the process would emit a thread dump but the other threads kept running!
This is what happens in #13274 which lets its thread do that and even relies on that, because just before the return of the entry function there is a store that releases the main PPU thread from a loop waiting for that byte to be set.

Fixes #13274.

kd-11
kd-11 previously approved these changes Jun 6, 2023
@Ordinary205
Copy link
Contributor

Ordinary205 commented Jun 6, 2023

I can confirm that this actually fixes an issue.
Mercenaries 1
Mercenaries 2

RPCS3.log.gz

@Megamouse Megamouse merged commit 6d918b5 into RPCS3:master Jun 6, 2023
5 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.

Mercenaries 2: World in Flames demo can't boot
4 participants