From 541066091949dc91e07874c262b0b5b740718d01 Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Mon, 13 Jul 2015 08:46:28 -0400 Subject: mem: Fix (ab)use of emplace to avoid temporary object creation --- src/mem/cache/prefetch/queued.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mem/cache/prefetch') 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); } } -- cgit v1.2.3