mem_dep_unit_impl.hh (10473:4cbe53150053) mem_dep_unit_impl.hh (10510:7e54a9a9f6b2)
1/*
2 * Copyright (c) 2012, 2014 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 114 unchanged lines hidden (view full) ---

123 .desc("Number of conflicting loads.");
124
125 conflictingStores
126 .name(name() + ".conflictingStores")
127 .desc("Number of conflicting stores.");
128}
129
130template <class MemDepPred, class Impl>
1/*
2 * Copyright (c) 2012, 2014 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 114 unchanged lines hidden (view full) ---

123 .desc("Number of conflicting loads.");
124
125 conflictingStores
126 .name(name() + ".conflictingStores")
127 .desc("Number of conflicting stores.");
128}
129
130template <class MemDepPred, class Impl>
131bool
132MemDepUnit<MemDepPred, Impl>::isDrained() const
133{
134 bool drained = instsToReplay.empty()
135 && memDepHash.empty()
136 && instsToReplay.empty();
137 for (int i = 0; i < Impl::MaxThreads; ++i)
138 drained = drained && instList[i].empty();
139
140 return drained;
141}
142
143template <class MemDepPred, class Impl>
131void
132MemDepUnit<MemDepPred, Impl>::drainSanityCheck() const
133{
134 assert(instsToReplay.empty());
135 assert(memDepHash.empty());
136 for (int i = 0; i < Impl::MaxThreads; ++i)
137 assert(instList[i].empty());
138 assert(instsToReplay.empty());

--- 463 unchanged lines hidden ---
144void
145MemDepUnit<MemDepPred, Impl>::drainSanityCheck() const
146{
147 assert(instsToReplay.empty());
148 assert(memDepHash.empty());
149 for (int i = 0; i < Impl::MaxThreads; ++i)
150 assert(instList[i].empty());
151 assert(instsToReplay.empty());

--- 463 unchanged lines hidden ---