Permalink
Browse files

cpu: Set memReq[tid] to NULL in finishTranslation after squashes

DefaultFetch::finishTranslation() sometimes deleted the incomming
memory request without clearing the associated memReq pointer. This
caused an assertion in DefaultFetch::drainSanityCheck to fail.
  • Loading branch information...
1 parent 6cfa566 commit 8b8da05c862abd1b16ca6ab0c03f59ca9d182513 @andysan committed Feb 4, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/cpu/o3/fetch_impl.hh
@@ -623,6 +623,8 @@ DefaultFetch<Impl>::finishTranslation(Fault fault, RequestPtr mem_req)
tid);
++fetchTlbSquashes;
delete mem_req;
+ if (mem_req != memReq[tid])
+ memReq[tid] = NULL;
return;
}

0 comments on commit 8b8da05

Please sign in to comment.