Fix up in case a req hasn't yet been generated for this instruction (if there was...
authorKevin Lim <ktlim@umich.edu>
Tue, 12 Dec 2006 04:51:21 +0000 (23:51 -0500)
committerKevin Lim <ktlim@umich.edu>
Tue, 12 Dec 2006 04:51:21 +0000 (23:51 -0500)
--HG--
extra : convert_revision : 43f4ea5e6a234cc6071006eab72135c11b8523c8

src/cpu/o3/lsq_unit_impl.hh

index 4facea9f9527c0300bc08cc2e9defbf702209eee..3b84d3411af230f49187b0402f489905499990e1 100644 (file)
@@ -418,7 +418,8 @@ LSQUnit<Impl>::executeLoad(DynInstPtr &inst)
         // realizes there is activity.
         // Mark it as executed unless it is an uncached load that
         // needs to hit the head of commit.
-        if (!(inst->req->isUncacheable()) || inst->isAtCommit()) {
+        if (!(inst->req && inst->req->isUncacheable()) ||
+            inst->isAtCommit()) {
             inst->setExecuted();
         }
         iewStage->instToCommit(inst);