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

Debugger: Use safe vtlb read/write methods #11595

Merged
merged 1 commit into from
Sep 29, 2024
Merged

Conversation

F0bes
Copy link
Member

@F0bes F0bes commented Jul 19, 2024

Description of Changes

Instead of using the unsafe vtlb access functions that can cause tlb misses and trigger MMIO handlers I've migrated the debugger to use the safer ones.

Rationale behind Changes

This seems to have fixed the recursion issue when pause-on-tlb-miss is enabled.
It also wasn't great that the debugger can read guest FIFOs and such.

Suggested Testing Steps

Enable pause-on-tlb-miss, open the debugger, and reset a bunch of times and see if PCSX2 crashes.
Test and see if the debugger still works fine.

Fixes #11594

@ghost
Copy link

ghost commented Jul 20, 2024

It's still crashing :/

@RedDevilus
Copy link
Contributor

RedDevilus commented Jul 20, 2024

It's still crashing :/

Can you show error and backtrace?

@F0bes
Copy link
Member Author

F0bes commented Jul 20, 2024

I fixed the recursion, but you're right, the crash is still there.

The backtrace is quite odd, it's crashing inside of Qt. I'll have to further investigate.

@F0bes F0bes marked this pull request as draft July 20, 2024 00:37
@ghost
Copy link

ghost commented Jul 20, 2024

It's still crashing :/

Can you show error and backtrace?

I don't have a crash log.

My.Movie.mp4

@F0bes F0bes marked this pull request as ready for review September 26, 2024 20:46
@F0bes F0bes changed the title Debugger: Fix possible recursion loop when pause-on-tlb-miss is enabled Debugger: Use safe vtlb read/write methods Sep 26, 2024
@F0bes F0bes merged commit a694c1b into master Sep 29, 2024
22 checks passed
@F0bes F0bes deleted the debugger-tlb-recursion branch September 29, 2024 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: PCSX2 sometimes crashes when game is reset due to debugger window.
4 participants