pcsx2 icon indicating copy to clipboard operation
pcsx2 copied to clipboard

Darwin: Implement Mach exception ports instead of signals

Open F0bes opened this issue 11 months ago • 1 comments

Credit goes to the Julia language and Dolphin emulator for their free and open source implementations

Description of Changes

Instead of relying on signal handling for our segfault handler, create mach exception ports.

Rationale behind Changes

I was hoping this would allow me to reliably use lldb but it appears that rosetta might still be a blocker.

Suggested Testing Steps

Test games with self modifying code?

F0bes avatar Feb 07 '25 16:02 F0bes

R&C2 Megaturret uses self modifying code, tested (in this case the Mega Megaturret specifically but they should be identical on the SMC front) and works with this PR on macOS 15 with Apple Silicon

DigitalMajestic avatar Nov 02 '25 21:11 DigitalMajestic