changeset f11b4c0e52f8 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=f11b4c0e52f8
description:
        mem: Fixes a bug in simple_dram write merging
        Fixes updating the value of size in the write merge function.

        Committed by: Nilay Vaish <[email protected]>

diffstat:

 src/mem/simple_dram.cc |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 8b7425bd3196 -r f11b4c0e52f8 src/mem/simple_dram.cc
--- a/src/mem/simple_dram.cc    Tue Jan 28 07:15:53 2014 -0600
+++ b/src/mem/simple_dram.cc    Tue Jan 28 18:00:49 2014 -0600
@@ -506,8 +506,8 @@
                     merged = true;
                     // the existing queue item needs to be adjusted with
                     // respect to both address and size
+                    (*w)->size = (*w)->addr + (*w)->size - addr;
                     (*w)->addr = addr;
-                    (*w)->size = (*w)->addr + (*w)->size - addr;
                 }
             } else {
                 // the new one starts after the current one, figure
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to