cache: fix longstanding prefetcher bug
Thanks to Joe Gross for pointing this out (again?). Apologies to anyone who pointed it out earlier and we didn't listen.
This commit is contained in:
parent
96767fc721
commit
de2321de81
1 changed files with 1 additions and 1 deletions
2
src/mem/cache/cache_impl.hh
vendored
2
src/mem/cache/cache_impl.hh
vendored
|
@ -1308,7 +1308,7 @@ Cache<TagStore>::getNextMSHR()
|
|||
|
||||
// fall through... no pending requests. Try a prefetch.
|
||||
assert(!miss_mshr && !write_mshr);
|
||||
if (!mshrQueue.isFull()) {
|
||||
if (prefetcher && !mshrQueue.isFull()) {
|
||||
// If we have a miss queue slot, we can try a prefetch
|
||||
PacketPtr pkt = prefetcher->getPacket();
|
||||
if (pkt) {
|
||||
|
|
Loading…
Reference in a new issue