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

Add sfence and lfence passthrough support #37

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

truls
Copy link
Contributor

@truls truls commented Dec 9, 2016

No description provided.

truls added 2 commits December 9, 2016 18:14
Needed for sfence/lfence which considers the value of the ModRM byte as part of the opcode. The alternative to adding 3-byte opcode was to use special operator values to make sure that the correct ModRM byte was generated. The current solution feels less hacky.
@aengelke
Copy link
Contributor

aengelke commented Dec 9, 2016

But 0f ae is the opcode, and it encodes an opcode extension group...

@weidendo
Copy link
Contributor

weidendo commented Dec 9, 2016

@aengelke: not sure I understand your point here. But there is support in the decoder to have handlers for instructions which are part of an opcode extension group. See setOpcG(), https://github.com/lrr-tum/dbrew/blob/master/src/decode.c#L2030

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.

3 participants