diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2015-07-13 08:46:28 -0400 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2015-07-13 08:46:28 -0400 |
commit | 541066091949dc91e07874c262b0b5b740718d01 (patch) | |
tree | f7c74ea96be749d281f733da10a68c638f27e2de /src/mem/cache/prefetch | |
parent | d870c399d37a341ed6d0f59e892bf012df0e3d8a (diff) | |
download | gem5-541066091949dc91e07874c262b0b5b740718d01.tar.xz |
mem: Fix (ab)use of emplace to avoid temporary object creation
Diffstat (limited to 'src/mem/cache/prefetch')
-rw-r--r-- | src/mem/cache/prefetch/queued.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/cache/prefetch/queued.cc b/src/mem/cache/prefetch/queued.cc index 97ea4eee6..58b33a4ae 100644 --- a/src/mem/cache/prefetch/queued.cc +++ b/src/mem/cache/prefetch/queued.cc @@ -149,7 +149,7 @@ QueuedPrefetcher::notify(const PacketPtr &pkt) DPRINTF(HWPrefetch, "Prefetch queued. " "addr:%#x tick:%lld.\n", pf_addr, pf_time); - pfq.emplace_back(DeferredPacket(pf_time, pf_pkt)); + pfq.emplace_back(pf_time, pf_pkt); } } |