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

Fix OpArg::WriteRex with 8-bit memory operand. #210

Merged
merged 1 commit into from Mar 26, 2014

Conversation

magumagu
Copy link
Contributor

Previously the function was misbehaving because it would treat an 8-bit memory operand as if it referred to an 8-bit register. It would therefore emit unnecessary REX prefixes, incorrectly assert on 32-bit targets, and
could potentially emit wrong code in rare cases.

Also, some cleanup while I was in the area to make the function easier to read.

Previously he function was misbehaving because of a missing check for
whether an 8-bit operand was a register operand; it would therefore
emit unnecessary REX prefixes, incorrectly assert on 32-bit targets, and
could potentially emit wrong code in rare cases (like a memory to register
operation involving AH.)

Also, some cleanup while I was in the area to make the function easier to
read.
@delroth
Copy link
Member

delroth commented Mar 26, 2014

LGTM (and added to the trusted devs list).

@shuffle2
Copy link
Contributor

@magumagu you might find https://github.com/shuffle2/dolphin/commits/ugly-hacks interesting if you are attempting to fix 32bit jit issues.
this commit lgtm as well, fwiw

@delroth
Copy link
Member

delroth commented Mar 26, 2014

@dolphin-emu-bot rebuild

delroth added a commit that referenced this pull request Mar 26, 2014
Fix OpArg::WriteRex with 8-bit memory operand.
@delroth delroth merged commit 5fc6ce5 into dolphin-emu:master Mar 26, 2014
@magumagu magumagu deleted the writerex-fix branch March 27, 2014 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants