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

x64Emitter: J_CC: use 32 bit offset automatically #457

Merged
merged 1 commit into from Jun 7, 2014

Conversation

Tilka
Copy link
Member

@Tilka Tilka commented Jun 3, 2014

When the offset is known, there is no need to force an additional argument.

@degasus
Copy link
Member

degasus commented Jun 3, 2014

imo this flag should stay for backpatching, but it should automaticly fall back to the 5 byte version for large jumps.

@Tilka
Copy link
Member Author

Tilka commented Jun 3, 2014

That's what this does. J_CC is overloaded.

@Tilka
Copy link
Member Author

Tilka commented Jun 3, 2014

Maybe the overloaded versions of J_CC should be renamed to Jcc_forwards and Jcc_backwards?

@BhaaLseN
Copy link
Member

BhaaLseN commented Jun 4, 2014

+1 for that change, I have no idea why we never did this back then (but stuck with the force5bytes parameter).
~0 for the forwards/backwards rename; its the same opcode after all (except that we don't know the address in advance). And it doesn't necessarily mean that we jump forwards if we know the address in advance (nor vice-versa for the backwards case).

@Tilka
Copy link
Member Author

Tilka commented Jun 6, 2014

I believe this is ready to be merged.

@degasus
Copy link
Member

degasus commented Jun 6, 2014

LGTM as it is

Sonicadvance1 added a commit that referenced this pull request Jun 7, 2014
x64Emitter: J_CC: use 32 bit offset automatically
@Sonicadvance1 Sonicadvance1 merged commit b6db0d0 into dolphin-emu:master Jun 7, 2014
@Tilka Tilka deleted the jcc branch June 7, 2014 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants