diff options
author | Nikos Nikoleris <nikos.nikoleris@arm.com> | 2016-05-26 11:56:24 +0100 |
---|---|---|
committer | Nikos Nikoleris <nikos.nikoleris@arm.com> | 2016-05-26 11:56:24 +0100 |
commit | d68f3577d6183de7dcadc1cfbfe53444e83989de (patch) | |
tree | 4bacf524b307b385a74b237c0a2de0b0234908cc /src/mem/cache/prefetch | |
parent | 90bf50b4c7249a4f5529245a82bc59370de468bd (diff) | |
download | gem5-d68f3577d6183de7dcadc1cfbfe53444e83989de.tar.xz |
mem: change NULL to nullptr in the cache related classes
Change-Id: I5042410be54935650b7d05c84d8d9efbfcc06e70
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Diffstat (limited to 'src/mem/cache/prefetch')
-rw-r--r-- | src/mem/cache/prefetch/queued.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mem/cache/prefetch/queued.cc b/src/mem/cache/prefetch/queued.cc index 015609bab..863d36900 100644 --- a/src/mem/cache/prefetch/queued.cc +++ b/src/mem/cache/prefetch/queued.cc @@ -117,14 +117,14 @@ QueuedPrefetcher::getPacket() if (pfq.empty()) { DPRINTF(HWPrefetch, "No hardware prefetches available.\n"); - return NULL; + return nullptr; } PacketPtr pkt = pfq.begin()->pkt; pfq.pop_front(); pfIssued++; - assert(pkt != NULL); + assert(pkt != nullptr); DPRINTF(HWPrefetch, "Generating prefetch for %#x.\n", pkt->getAddr()); return pkt; } |