X86: LEA calculates an address before segmentation.

This commit is contained in:
Gabe Black 2009-04-19 03:24:51 -07:00
parent bdd55ec8b6
commit 35eea4191b

View file

@ -484,7 +484,9 @@ let {{
iop = InstObjParams("lea", "Lea", 'X86ISA::LdStOp',
{"code": "Data = merge(Data, EA, dataSize);",
"ea_code": calculateEA})
"ea_code": '''
EA = bits(scale * Index + Base + disp, addressSize * 8 - 1, 0);
'''})
header_output += MicroLeaDeclare.subst(iop)
decoder_output += MicroLdStOpConstructor.subst(iop)
exec_output += MicroLeaExecute.subst(iop)