Skip to content

Commit

Permalink
cpu: Set memReq[tid] to NULL in finishTranslation after squashes
Browse files Browse the repository at this point in the history
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
andysan committed Mar 13, 2013
1 parent 303f7c4 commit 7de5726
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cpu/o3/fetch_impl.hh
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,8 @@ DefaultFetch<Impl>::finishTranslation(Fault fault, RequestPtr mem_req)
tid);
++fetchTlbSquashes;
delete mem_req;
if (mem_req != memReq[tid])
memReq[tid] = NULL;
return;
}

Expand Down

0 comments on commit 7de5726

Please sign in to comment.