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

sys_ppu_thread_create: read function descriptor immediately and save it #7988

Merged
merged 2 commits into from Apr 8, 2020

Conversation

elad335
Copy link
Contributor

@elad335 elad335 commented Apr 8, 2020

Function descriptor should be read immediatly in _sys_ppu_thread_create by the calling thread, in interrupt thread it occurs every interrupt is being sent and in other ppu thread types its being done asynchronously by the created thread which both are wrong.
In theory it protects against cases where the function descriptor is being overwritten after the creating thread syscall ended but shouldn't happen in reality in games iirc, so it's just an accuracy improvement.

Also log ppu thread start entry, example: _sys_ppu_thread_create(): Thread “LIBDG_dummyflip” created (id=0x1000011, func=*0xf8cdc, rtoc=0x3df5e8)

@elad335 elad335 changed the title sys_ppu_thread_create: read function descriptor immedialt and save it sys_ppu_thread_create: read function descriptor immedialty and save it Apr 8, 2020
@elad335 elad335 force-pushed the read-start branch 2 times, most recently from 60399f7 to 6911406 Compare April 8, 2020 12:44
@elad335 elad335 changed the title sys_ppu_thread_create: read function descriptor immedialty and save it sys_ppu_thread_create: read function descriptor immediately and save it Apr 8, 2020
@Nekotekina Nekotekina merged commit cce946f into RPCS3:master Apr 8, 2020
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.

None yet

2 participants