Update read/written registers for x86 procedure return instructions #2789
+163
−46
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
These should have been part of
#2578
There are two bugs in 64-bit mode that can't be fixed here:
In 16-bit mode, Zydis and xed use 'esp' instead of 'sp' for all 'ret*' instructions. I've opted not to follow that since it makes no sense to have a 32-bit register present in a 16-bit context. I'll submit a bug report to Zydis and see what they say.
Your checklist for this pull request
Detailed description
Update the read/written registers for ret, iret, retf, and iretf. Include complete testing of all instruction permutations.
Test plan
Tests are included.