-
Notifications
You must be signed in to change notification settings - Fork 265
[arch/x86] [WIP] Intel APX support #6423
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
base: dev
Are you sure you want to change the base?
Conversation
|
@nullableVoidPtr thx for your work! Please let me know when you think the code is ready for reviewer! |
| @@ -3435,6 +3462,23 @@ class X64Architecture: public X86CommonArchitecture | |||
| case XED_REG_R14W: return RegisterInfo(XED_REG_R14, 0, 2); | |||
| case XED_REG_R15W: return RegisterInfo(XED_REG_R15, 0, 2); | |||
|
|
|||
| case XED_REG_R16W: return RegisterInfo(XED_REG_R16, 0, 1); | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return RegisterInfo(XED_REG_R16, 0, 1); -> return RegisterInfo(XED_REG_R16, 0, 2);
| @@ -3472,6 +3516,23 @@ class X64Architecture: public X86CommonArchitecture | |||
| case XED_REG_R14D: return RegisterInfo(XED_REG_R14, 0, 4, true); | |||
| case XED_REG_R15D: return RegisterInfo(XED_REG_R15, 0, 4, true); | |||
|
|
|||
| case XED_REG_R16D: return RegisterInfo(XED_REG_R16, 0, 1); | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return RegisterInfo(XED_REG_R16, 0, 1); -> return RegisterInfo(XED_REG_R16, 0, 4, true);
| @@ -3518,6 +3579,23 @@ class X64Architecture: public X86CommonArchitecture | |||
| case XED_REG_R13: return RegisterInfo(XED_REG_R13, 0, 8); | |||
| case XED_REG_R14: return RegisterInfo(XED_REG_R14, 0, 8); | |||
| case XED_REG_R15: return RegisterInfo(XED_REG_R15, 0, 8); | |||
| case XED_REG_R16: return RegisterInfo(XED_REG_R16, 0, 1); | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return RegisterInfo(XED_REG_R16, 0, 1); -> return RegisterInfo(XED_REG_R16, 0, 8);
| @@ -1870,6 +2265,10 @@ bool GetLowLevelILForInstruction(Architecture* arch, const uint64_t addr, LowLev | |||
| il.AddInstruction(il.Jump(ReadILOperand(il, xedd, addr, 0, 0))); | |||
| return false; | |||
|
|
|||
| case XED_ICLASS_JMPABS: | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should just be able to reuse existing case XED_ICLASS_JMP
|
The push / pop lifting looks fine on the binary https://github.com/user-attachments/files/23866882/apxbin.zip |

Currently a work in progress, unpolished, and needs a lot of testing against APX corpus binaries:
Resolves #5246