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

InstCountCI: Fixes test to not use relative data #3393

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

Sonicadvance1
Copy link
Member

JIT code and loaded code memory offsets aren't consistent run to run which causes code generation consistency issues.
Instead use a register plus an immediate that can't fit in a single 16-bit encoding to get similar register allocation to RIP relative addresses.

At some point it will probably be nice to support consistent placement of both guest and host code so RIP relative can be used, but we don't have support in our backend to do that.

@alyssarosenzweig This will fix your consistency woes.

JIT code and loaded code memory offsets aren't consistent run to run
which causes code generation consistency issues.
Instead use a register plus an immediate that can't fit in a single
16-bit encoding to get similar register allocation to RIP relative
addresses.

At some point it will probably be nice to support consistent placement
of both guest and host code so RIP relative can be used, but we don't have
support in our backend to do that.
Copy link
Collaborator

@alyssarosenzweig alyssarosenzweig left a comment

Choose a reason for hiding this comment

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

thanks :)

@Sonicadvance1 Sonicadvance1 merged commit 3db31a6 into FEX-Emu:main Jan 31, 2024
10 checks passed
@Sonicadvance1 Sonicadvance1 deleted the fix_relative_data branch January 31, 2024 07:43
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.

2 participants