mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 17:00:19 +02:00
Adds comment for LEA and segment registers
LEA doesn't give you the result with segment register applied to it. Adds a comment to OpDispatcher to make it more clear
This commit is contained in:
1 parent
8319a85524
commit
4f276aae82
1 file changed
+1
@@ -130,6 +130,7 @@ void OpDispatchBuilder::ThunkOp(OpcodeArgs) {
|
||||
}
|
||||
|
||||
void OpDispatchBuilder::LEAOp(OpcodeArgs) {
|
||||
// LEA specifically ignores segment prefixes
|
||||
if (CTX->Config.Is64BitMode) {
|
||||
uint32_t DstSize = X86Tables::DecodeFlags::GetOpAddr(Op->Flags, 0) == X86Tables::DecodeFlags::FLAG_OPERAND_SIZE_LAST ? 2 :
|
||||
X86Tables::DecodeFlags::GetOpAddr(Op->Flags, 0) == X86Tables::DecodeFlags::FLAG_WIDENING_SIZE_LAST ? 8 : 4;
|
||||
|
||||
Reference in new issue
Block a user