changeset 815827deb469 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=815827deb469
description:
        X86: Take address size into account when computing an effective address.

diffstat:

1 file changed, 3 insertions(+), 1 deletion(-)
src/arch/x86/isa/microops/ldstop.isa |    4 +++-

diffs (14 lines):

diff -r 6f9f1438360a -r 815827deb469 src/arch/x86/isa/microops/ldstop.isa
--- a/src/arch/x86/isa/microops/ldstop.isa      Fri Feb 27 09:25:02 2009 -0800
+++ b/src/arch/x86/isa/microops/ldstop.isa      Fri Feb 27 09:25:16 2009 -0800
@@ -402,7 +402,9 @@
     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
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to