summaryrefslogtreecommitdiff
path: root/src/mem/cache/prefetch/queued.cc
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2015-03-19 04:06:11 -0400
committerAndreas Hansson <andreas.hansson@arm.com>2015-03-19 04:06:11 -0400
commit5275c9d740589abd631571cf48ac57d393d28093 (patch)
treeba07420117a6e353e2a24bdafc44db268a9554be /src/mem/cache/prefetch/queued.cc
parent1d403960afec613f3aa9f1fc2ffc3287139e1d86 (diff)
downloadgem5-5275c9d740589abd631571cf48ac57d393d28093.tar.xz
mem: Use emplace front/back for deferred packets
Embrace C++11 for the deferred packets as we actually store the objects in the data structure, and not just pointers.
Diffstat (limited to 'src/mem/cache/prefetch/queued.cc')
-rw-r--r--src/mem/cache/prefetch/queued.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/cache/prefetch/queued.cc b/src/mem/cache/prefetch/queued.cc
index 318d565dc..97ea4eee6 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.push_back(DeferredPacket(pf_time, pf_pkt));
+ pfq.emplace_back(DeferredPacket(pf_time, pf_pkt));
}
}