X86: LEA calculates an address before segmentation.
This commit is contained in:
parent
bdd55ec8b6
commit
35eea4191b
1 changed files with 3 additions and 1 deletions
|
@ -484,7 +484,9 @@ let {{
|
||||||
|
|
||||||
iop = InstObjParams("lea", "Lea", 'X86ISA::LdStOp',
|
iop = InstObjParams("lea", "Lea", 'X86ISA::LdStOp',
|
||||||
{"code": "Data = merge(Data, EA, dataSize);",
|
{"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)
|
header_output += MicroLeaDeclare.subst(iop)
|
||||||
decoder_output += MicroLdStOpConstructor.subst(iop)
|
decoder_output += MicroLdStOpConstructor.subst(iop)
|
||||||
exec_output += MicroLeaExecute.subst(iop)
|
exec_output += MicroLeaExecute.subst(iop)
|
||||||
|
|
Loading…
Reference in a new issue