From: Gabe Black Date: Fri, 27 Feb 2009 17:25:16 +0000 (-0800) Subject: X86: Take address size into account when computing an effective address. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8a1eb7e8bec41d41daf3e35b30a11e04f6285f66;p=gem5.git X86: Take address size into account when computing an effective address. --- diff --git a/src/arch/x86/isa/microops/ldstop.isa b/src/arch/x86/isa/microops/ldstop.isa index 834b3947f..af94cf31e 100644 --- a/src/arch/x86/isa/microops/ldstop.isa +++ b/src/arch/x86/isa/microops/ldstop.isa @@ -402,7 +402,9 @@ let {{ decoder_output = "" exec_output = "" - calculateEA = "EA = SegBase + scale * Index + Base + disp;" + calculateEA = ''' + EA = bits(SegBase + scale * Index + Base + disp, addressSize * 8 - 1, 0); + ''' def defineMicroLoadOp(mnemonic, code, mem_flags="0"): global header_output