changeset bd104adbf04d in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=bd104adbf04d
description:
        LSQ Unit: After deleting part of a split request, set it to NULL so 
that it
        isn't accidentally deleted again later (causing a segmentation fault).

diffstat:

 src/cpu/o3/lsq_unit.hh |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (20 lines):

diff -r fb7fc9aca918 -r bd104adbf04d src/cpu/o3/lsq_unit.hh
--- a/src/cpu/o3/lsq_unit.hh    Thu Jul 22 18:54:37 2010 +0100
+++ b/src/cpu/o3/lsq_unit.hh    Thu Jul 22 18:54:37 2010 +0100
@@ -744,6 +744,8 @@
                 delete fst_data_pkt;
                 delete snd_data_pkt->req;
                 delete snd_data_pkt;
+                sreqLow = NULL;
+                sreqHigh = NULL;
             }
 
             req = NULL;
@@ -769,6 +771,7 @@
                 state->complete();
 
                 req = NULL;
+                sreqHigh = NULL;
 
                 lsq->setRetryTid(lsqID);
             }
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to