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

Jit64: Remove breakpoint check from JitAsm.cpp #11077

Merged
merged 1 commit into from Oct 16, 2022

Conversation

JosJuice
Copy link
Member

@JosJuice JosJuice commented Sep 22, 2022

The breakpoint check in Jit.cpp makes it redundant.

Normally this redundant check doesn't cause any issues, but if you create a breakpoint and enable logging without breaking, you get two log messages if the breakpoint is at the beginning of a block. See https://bugs.dolphin-emu.org/issues/13044.

This is also a tiny performance improvement for when debugging is active, since we no longer check for breakpoints for blocks that never had any breakpoints to begin with.

@JosJuice JosJuice marked this pull request as draft September 22, 2022 20:48
@TryTwo
Copy link
Contributor

TryTwo commented Sep 22, 2022

I barely understand the code in that section, but if jitasm is causing a break, maybe checkbreakpoints could be conditioned on that. Then jit could be left alone to handle log without breaking and any breaks that jit calls itself.

@JosJuice JosJuice marked this pull request as ready for review October 15, 2022 14:38
Copy link
Contributor

@AdmiralCurtiss AdmiralCurtiss left a comment

Choose a reason for hiding this comment

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

Untested, but this looks right to me.

The breakpoint check in Jit.cpp makes it redundant.

Normally this redundant check doesn't cause any issues, but if you
create a breakpoint and enable logging without breaking, you get two
log messages if the breakpoint is at the beginning of a block. See
https://bugs.dolphin-emu.org/issues/13044.

This is also a tiny performance improvement for when debugging is
active, since we no longer check for breakpoints for blocks that never
had any breakpoints to begin with.
@TryTwo
Copy link
Contributor

TryTwo commented Oct 16, 2022

Thanks for working on this! Not noticing any issues now.

@AdmiralCurtiss AdmiralCurtiss merged commit fbe782f into dolphin-emu:master Oct 16, 2022
11 checks passed
@JosJuice JosJuice deleted the jitasm-no-breakpoint branch October 16, 2022 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants