summaryrefslogtreecommitdiff
path: root/cpu/o3/mem_dep_unit_impl.hh
diff options
context:
space:
mode:
authorKevin Lim <ktlim@umich.edu>2006-09-28 00:09:27 -0400
committerKevin Lim <ktlim@umich.edu>2006-09-28 00:09:27 -0400
commit51f19f2e28a30054d4a9cc06b059b602e17e504f (patch)
tree8848ad3ba16217e00995d06a1ccdc7000cdd42d8 /cpu/o3/mem_dep_unit_impl.hh
parent65741cd048933214df43982979079fccfffb3fce (diff)
downloadgem5-51f19f2e28a30054d4a9cc06b059b602e17e504f.tar.xz
Minor changes plus updates to O3.
cpu/base.cc: Have output message regardless of build. cpu/checker/cpu_builder.cc: cpu/checker/o3_cpu_builder.cc: Be sure to include all parameters. cpu/o3/cpu.cc: IEW also needs to switch out. cpu/o3/iew_impl.hh: Handle stores with faults properly. cpu/o3/inst_queue_impl.hh: Switch out properly, handle squashing properly. cpu/o3/lsq_unit_impl.hh: Minor fixes. cpu/o3/mem_dep_unit_impl.hh: Make sure mem dep unit is switched out properly. cpu/o3/rename_impl.hh: Switch out fix. --HG-- extra : convert_revision : b94deb83f724225c01166c84a1b3fdd3543cbe9a
Diffstat (limited to 'cpu/o3/mem_dep_unit_impl.hh')
-rw-r--r--cpu/o3/mem_dep_unit_impl.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpu/o3/mem_dep_unit_impl.hh b/cpu/o3/mem_dep_unit_impl.hh
index bfe694bd8..a2d04ece9 100644
--- a/cpu/o3/mem_dep_unit_impl.hh
+++ b/cpu/o3/mem_dep_unit_impl.hh
@@ -107,6 +107,9 @@ template <class MemDepPred, class Impl>
void
MemDepUnit<MemDepPred, Impl>::switchOut()
{
+ assert(instList[0].empty());
+ assert(instsToReplay.empty());
+ assert(memDepHash.empty());
// Clear any state.
for (int i = 0; i < Impl::MaxThreads; ++i) {
instList[i].clear();