mem: Fix event scheduling issue for prefetches
mem: Fix event scheduling issue for prefetches

The cache's MemSidePacketQueue schedules a sendEvent based upon
nextMSHRReadyTime() which is the time when the next MSHR is ready or whenever
a future prefetch is ready.  However, a prefetch being ready does not guarentee
that it can obtain an MSHR.  So, when all MSHRs are full,
the simulation ends up unnecessiciarly scheduling a sendEvent every picosecond
until an MSHR is finally freed and the prefetch can happen.

This patch fixes this by not signaling the prefetch ready time if the prefetch
could not be generated.  The event is rescheduled as soon as a MSHR becomes
available.

rjschof/gem5,cancro7/gem5,powerjg/gem5-ci-test,gem5/gem5,austinharris/gem5-riscv,HwisooSo/gemV-update,kaiyuanl/gem5,gedare/gem5,cancro7/gem5,kaiyuanl/gem5,kaiyuanl/gem5,sobercoder/gem5,HwisooSo/gemV-update,powerjg/gem5-ci-test,austinharris/gem5-riscv,Weil0ng/gem5,SanchayanMaity/gem5,SanchayanMaity/gem5,sobercoder/gem5,briancoutinho0905/2dsampling,kaiyuanl/gem5,aclifton/cpeg853-gem5,Weil0ng/gem5,sobercoder/gem5,markoshorro/gem5,HwisooSo/gemV-update,rallylee/gem5,markoshorro/gem5,qizenguf/MLC-STT,briancoutinho0905/2dsampling,briancoutinho0905/2dsampling,KuroeKurose/gem5,gem5/gem5,zlfben/gem5,Weil0ng/gem5,cancro7/gem5,gedare/gem5,qizenguf/MLC-STT,zlfben/gem5,gem5/gem5,rallylee/gem5,rallylee/gem5,SanchayanMaity/gem5,Weil0ng/gem5,kaiyuanl/gem5,austinharris/gem5-riscv,sobercoder/gem5,aclifton/cpeg853-gem5,SanchayanMaity/gem5,gedare/gem5,rjschof/gem5,HwisooSo/gemV-update,kaiyuanl/gem5,KuroeKurose/gem5,briancoutinho0905/2dsampling,kaiyuanl/gem5,zlfben/gem5,austinharris/gem5-riscv,TUD-OS/gem5-dtu,zlfben/gem5,rjschof/gem5,gem5/gem5,rjschof/gem5,gem5/gem5,austinharris/gem5-riscv,powerjg/gem5-ci-test,austinharris/gem5-riscv,TUD-OS/gem5-dtu,TUD-OS/gem5-dtu,zlfben/gem5,SanchayanMaity/gem5,rallylee/gem5,HwisooSo/gemV-update,rallylee/gem5,qizenguf/MLC-STT,gem5/gem5,rjschof/gem5,cancro7/gem5,markoshorro/gem5,powerjg/gem5-ci-test,KuroeKurose/gem5,zlfben/gem5,gem5/gem5,austinharris/gem5-riscv,KuroeKurose/gem5,aclifton/cpeg853-gem5,KuroeKurose/gem5,aclifton/cpeg853-gem5,powerjg/gem5-ci-test,SanchayanMaity/gem5,cancro7/gem5,gedare/gem5,TUD-OS/gem5-dtu,aclifton/cpeg853-gem5,Weil0ng/gem5,briancoutinho0905/2dsampling,Weil0ng/gem5,gedare/gem5,powerjg/gem5-ci-test,markoshorro/gem5,KuroeKurose/gem5,sobercoder/gem5,HwisooSo/gemV-update,sobercoder/gem5,TUD-OS/gem5-dtu,SanchayanMaity/gem5,aclifton/cpeg853-gem5,rallylee/gem5,gedare/gem5,HwisooSo/gemV-update,qizenguf/MLC-STT,cancro7/gem5,rallylee/gem5,KuroeKurose/gem5,zlfben/gem5,qizenguf/MLC-STT,briancoutinho0905/2dsampling,rjschof/gem5,Weil0ng/gem5,markoshorro/gem5,qizenguf/MLC-STT,rjschof/gem5,aclifton/cpeg853-gem5,TUD-OS/gem5-dtu,sobercoder/gem5,markoshorro/gem5,gedare/gem5,TUD-OS/gem5-dtu,cancro7/gem5,briancoutinho0905/2dsampling,qizenguf/MLC-STT,markoshorro/gem5,powerjg/gem5-ci-test