Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 8bd59e17076919eff3d0e89010944116beadbab0 1 parent c55f1cd
@andysan authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  src/cpu/o3/fetch_impl.hh
View
2  src/cpu/o3/fetch_impl.hh
@@ -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;
}

0 comments on commit 8bd59e1

Please sign in to comment.
Something went wrong with that request. Please try again.