diff options
author | Nathan Binkert <nate@binkert.org> | 2011-04-15 10:44:32 -0700 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2011-04-15 10:44:32 -0700 |
commit | eddac53ff60c579eff28134bde84783fe36d6214 (patch) | |
tree | 9095c6b64a6fdabf4e0d00b2c8f2ca40ad495f49 /src/cpu/o3 | |
parent | f946d7bcdb4d0b4327857d319dd4ecdd1c320d62 (diff) | |
download | gem5-eddac53ff60c579eff28134bde84783fe36d6214.tar.xz |
trace: reimplement the DTRACE function so it doesn't use a vector
At the same time, rename the trace flags to debug flags since they
have broader usage than simply tracing. This means that
--trace-flags is now --debug-flags and --trace-help is now --debug-help
Diffstat (limited to 'src/cpu/o3')
-rw-r--r-- | src/cpu/o3/bpred_unit_impl.hh | 2 | ||||
-rw-r--r-- | src/cpu/o3/commit_impl.hh | 4 | ||||
-rw-r--r-- | src/cpu/o3/cpu.cc | 4 | ||||
-rw-r--r-- | src/cpu/o3/decode_impl.hh | 2 | ||||
-rw-r--r-- | src/cpu/o3/fetch_impl.hh | 2 | ||||
-rw-r--r-- | src/cpu/o3/free_list.cc | 1 | ||||
-rw-r--r-- | src/cpu/o3/free_list.hh | 2 | ||||
-rw-r--r-- | src/cpu/o3/iew.hh | 1 | ||||
-rw-r--r-- | src/cpu/o3/iew_impl.hh | 3 | ||||
-rw-r--r-- | src/cpu/o3/inst_queue_impl.hh | 1 | ||||
-rw-r--r-- | src/cpu/o3/lsq_impl.hh | 3 | ||||
-rw-r--r-- | src/cpu/o3/lsq_unit.hh | 1 | ||||
-rw-r--r-- | src/cpu/o3/lsq_unit_impl.hh | 3 | ||||
-rw-r--r-- | src/cpu/o3/mem_dep_unit.hh | 1 | ||||
-rw-r--r-- | src/cpu/o3/mem_dep_unit_impl.hh | 1 | ||||
-rw-r--r-- | src/cpu/o3/regfile.hh | 1 | ||||
-rw-r--r-- | src/cpu/o3/rename_impl.hh | 2 | ||||
-rw-r--r-- | src/cpu/o3/rename_map.cc | 1 | ||||
-rw-r--r-- | src/cpu/o3/rob_impl.hh | 2 | ||||
-rw-r--r-- | src/cpu/o3/scoreboard.cc | 1 | ||||
-rw-r--r-- | src/cpu/o3/scoreboard.hh | 1 | ||||
-rw-r--r-- | src/cpu/o3/store_set.cc | 1 | ||||
-rwxr-xr-x | src/cpu/o3/thread_context_impl.hh | 1 |
23 files changed, 38 insertions, 3 deletions
diff --git a/src/cpu/o3/bpred_unit_impl.hh b/src/cpu/o3/bpred_unit_impl.hh index 44e6f4230..e0292e232 100644 --- a/src/cpu/o3/bpred_unit_impl.hh +++ b/src/cpu/o3/bpred_unit_impl.hh @@ -34,9 +34,9 @@ #include "arch/types.hh" #include "arch/utility.hh" #include "base/trace.hh" -#include "base/traceflags.hh" #include "config/the_isa.hh" #include "cpu/o3/bpred_unit.hh" +#include "debug/Fetch.hh" #include "params/DerivO3CPU.hh" template<class Impl> diff --git a/src/cpu/o3/commit_impl.hh b/src/cpu/o3/commit_impl.hh index 2512ab1f6..aa72c0750 100644 --- a/src/cpu/o3/commit_impl.hh +++ b/src/cpu/o3/commit_impl.hh @@ -54,6 +54,10 @@ #include "cpu/o3/thread_state.hh" #include "cpu/exetrace.hh" #include "cpu/timebuf.hh" +#include "debug/Activity.hh" +#include "debug/Commit.hh" +#include "debug/CommitRate.hh" +#include "debug/ExecFaulting.hh" #include "params/DerivO3CPU.hh" #include "sim/faults.hh" diff --git a/src/cpu/o3/cpu.cc b/src/cpu/o3/cpu.cc index 565c68f7a..b19e4f460 100644 --- a/src/cpu/o3/cpu.cc +++ b/src/cpu/o3/cpu.cc @@ -40,6 +40,9 @@ #include "cpu/activity.hh" #include "cpu/simple_thread.hh" #include "cpu/thread_context.hh" +#include "debug/Activity.hh" +#include "debug/O3CPU.hh" +#include "debug/Quiesce.hh" #include "enums/MemoryMode.hh" #include "sim/core.hh" #include "sim/stat_control.hh" @@ -57,6 +60,7 @@ #if THE_ISA == ALPHA_ISA #include "arch/alpha/osfpal.hh" +#include "debug/Activity.hh" #endif class BaseCPUParams; diff --git a/src/cpu/o3/decode_impl.hh b/src/cpu/o3/decode_impl.hh index cee597716..010dbfa5a 100644 --- a/src/cpu/o3/decode_impl.hh +++ b/src/cpu/o3/decode_impl.hh @@ -34,6 +34,8 @@ #include "config/the_isa.hh" #include "cpu/o3/decode.hh" #include "cpu/inst_seq.hh" +#include "debug/Activity.hh" +#include "debug/Decode.hh" #include "params/DerivO3CPU.hh" using namespace std; diff --git a/src/cpu/o3/fetch_impl.hh b/src/cpu/o3/fetch_impl.hh index 806cf7916..0f7d908d1 100644 --- a/src/cpu/o3/fetch_impl.hh +++ b/src/cpu/o3/fetch_impl.hh @@ -52,6 +52,8 @@ #include "cpu/checker/cpu.hh" #include "cpu/o3/fetch.hh" #include "cpu/exetrace.hh" +#include "debug/Activity.hh" +#include "debug/Fetch.hh" #include "mem/packet.hh" #include "mem/request.hh" #include "params/DerivO3CPU.hh" diff --git a/src/cpu/o3/free_list.cc b/src/cpu/o3/free_list.cc index 88020a0a2..4224d0e41 100644 --- a/src/cpu/o3/free_list.cc +++ b/src/cpu/o3/free_list.cc @@ -30,6 +30,7 @@ #include "base/trace.hh" #include "cpu/o3/free_list.hh" +#include "debug/FreeList.hh" SimpleFreeList::SimpleFreeList(ThreadID activeThreads, unsigned _numLogicalIntRegs, diff --git a/src/cpu/o3/free_list.hh b/src/cpu/o3/free_list.hh index 96289f641..fec076097 100644 --- a/src/cpu/o3/free_list.hh +++ b/src/cpu/o3/free_list.hh @@ -37,9 +37,9 @@ #include "arch/registers.hh" #include "base/misc.hh" #include "base/trace.hh" -#include "base/traceflags.hh" #include "config/the_isa.hh" #include "cpu/o3/comm.hh" +#include "debug/FreeList.hh" /** * FreeList class that simply holds the list of free integer and floating diff --git a/src/cpu/o3/iew.hh b/src/cpu/o3/iew.hh index 75f6df7ab..8ebbfb2e6 100644 --- a/src/cpu/o3/iew.hh +++ b/src/cpu/o3/iew.hh @@ -52,6 +52,7 @@ #include "cpu/o3/lsq.hh" #include "cpu/o3/scoreboard.hh" #include "cpu/timebuf.hh" +#include "debug/IEW.hh" class DerivO3CPUParams; class FUPool; diff --git a/src/cpu/o3/iew_impl.hh b/src/cpu/o3/iew_impl.hh index e76a6bc3d..2569dbb34 100644 --- a/src/cpu/o3/iew_impl.hh +++ b/src/cpu/o3/iew_impl.hh @@ -51,6 +51,9 @@ #include "cpu/o3/fu_pool.hh" #include "cpu/o3/iew.hh" #include "cpu/timebuf.hh" +#include "debug/Activity.hh" +#include "debug/Decode.hh" +#include "debug/IEW.hh" #include "params/DerivO3CPU.hh" using namespace std; diff --git a/src/cpu/o3/inst_queue_impl.hh b/src/cpu/o3/inst_queue_impl.hh index 1a211af7a..bac9e2ec6 100644 --- a/src/cpu/o3/inst_queue_impl.hh +++ b/src/cpu/o3/inst_queue_impl.hh @@ -46,6 +46,7 @@ #include "cpu/o3/fu_pool.hh" #include "cpu/o3/inst_queue.hh" +#include "debug/IQ.hh" #include "enums/OpClass.hh" #include "params/DerivO3CPU.hh" #include "sim/core.hh" diff --git a/src/cpu/o3/lsq_impl.hh b/src/cpu/o3/lsq_impl.hh index ddfc63754..8dd240557 100644 --- a/src/cpu/o3/lsq_impl.hh +++ b/src/cpu/o3/lsq_impl.hh @@ -33,6 +33,9 @@ #include <string> #include "cpu/o3/lsq.hh" +#include "debug/Fetch.hh" +#include "debug/LSQ.hh" +#include "debug/Writeback.hh" #include "params/DerivO3CPU.hh" using namespace std; diff --git a/src/cpu/o3/lsq_unit.hh b/src/cpu/o3/lsq_unit.hh index 2d9a6ce56..be9c91a23 100644 --- a/src/cpu/o3/lsq_unit.hh +++ b/src/cpu/o3/lsq_unit.hh @@ -45,6 +45,7 @@ #include "config/the_isa.hh" #include "cpu/inst_seq.hh" #include "cpu/timebuf.hh" +#include "debug/LSQUnit.hh" #include "mem/packet.hh" #include "mem/port.hh" diff --git a/src/cpu/o3/lsq_unit_impl.hh b/src/cpu/o3/lsq_unit_impl.hh index 6a366d056..aa86c3d14 100644 --- a/src/cpu/o3/lsq_unit_impl.hh +++ b/src/cpu/o3/lsq_unit_impl.hh @@ -47,6 +47,9 @@ #include "config/use_checker.hh" #include "cpu/o3/lsq.hh" #include "cpu/o3/lsq_unit.hh" +#include "debug/Activity.hh" +#include "debug/IEW.hh" +#include "debug/LSQUnit.hh" #include "mem/packet.hh" #include "mem/request.hh" diff --git a/src/cpu/o3/mem_dep_unit.hh b/src/cpu/o3/mem_dep_unit.hh index a9560f446..5d6f0a159 100644 --- a/src/cpu/o3/mem_dep_unit.hh +++ b/src/cpu/o3/mem_dep_unit.hh @@ -38,6 +38,7 @@ #include "base/refcnt.hh" #include "base/statistics.hh" #include "cpu/inst_seq.hh" +#include "debug/MemDepUnit.hh" struct SNHash { size_t operator() (const InstSeqNum &seq_num) const { diff --git a/src/cpu/o3/mem_dep_unit_impl.hh b/src/cpu/o3/mem_dep_unit_impl.hh index fdea84ed5..6f3c922a7 100644 --- a/src/cpu/o3/mem_dep_unit_impl.hh +++ b/src/cpu/o3/mem_dep_unit_impl.hh @@ -32,6 +32,7 @@ #include "cpu/o3/inst_queue.hh" #include "cpu/o3/mem_dep_unit.hh" +#include "debug/MemDepUnit.hh" #include "params/DerivO3CPU.hh" template <class MemDepPred, class Impl> diff --git a/src/cpu/o3/regfile.hh b/src/cpu/o3/regfile.hh index e252fa362..d04f45cc0 100644 --- a/src/cpu/o3/regfile.hh +++ b/src/cpu/o3/regfile.hh @@ -40,6 +40,7 @@ #include "config/full_system.hh" #include "config/the_isa.hh" #include "cpu/o3/comm.hh" +#include "debug/IEW.hh" #if FULL_SYSTEM #include "arch/kernel_stats.hh" diff --git a/src/cpu/o3/rename_impl.hh b/src/cpu/o3/rename_impl.hh index 1f34b7255..7d20cac30 100644 --- a/src/cpu/o3/rename_impl.hh +++ b/src/cpu/o3/rename_impl.hh @@ -48,6 +48,8 @@ #include "config/full_system.hh" #include "config/the_isa.hh" #include "cpu/o3/rename.hh" +#include "debug/Activity.hh" +#include "debug/Rename.hh" #include "params/DerivO3CPU.hh" using namespace std; diff --git a/src/cpu/o3/rename_map.cc b/src/cpu/o3/rename_map.cc index e6649ce3e..cc5044c20 100644 --- a/src/cpu/o3/rename_map.cc +++ b/src/cpu/o3/rename_map.cc @@ -31,6 +31,7 @@ #include <vector> #include "cpu/o3/rename_map.hh" +#include "debug/Rename.hh" using namespace std; diff --git a/src/cpu/o3/rob_impl.hh b/src/cpu/o3/rob_impl.hh index d9d1daded..dcde54a54 100644 --- a/src/cpu/o3/rob_impl.hh +++ b/src/cpu/o3/rob_impl.hh @@ -33,6 +33,8 @@ #include "config/full_system.hh" #include "cpu/o3/rob.hh" +#include "debug/Fetch.hh" +#include "debug/ROB.hh" using namespace std; diff --git a/src/cpu/o3/scoreboard.cc b/src/cpu/o3/scoreboard.cc index 7fb47f3c7..83a88f213 100644 --- a/src/cpu/o3/scoreboard.cc +++ b/src/cpu/o3/scoreboard.cc @@ -31,6 +31,7 @@ #include "config/the_isa.hh" #include "cpu/o3/scoreboard.hh" +#include "debug/Scoreboard.hh" Scoreboard::Scoreboard(unsigned activeThreads, unsigned _numLogicalIntRegs, diff --git a/src/cpu/o3/scoreboard.hh b/src/cpu/o3/scoreboard.hh index 4789e2181..8a49d7a3a 100644 --- a/src/cpu/o3/scoreboard.hh +++ b/src/cpu/o3/scoreboard.hh @@ -37,7 +37,6 @@ #include <vector> #include "base/trace.hh" -#include "base/traceflags.hh" #include "cpu/o3/comm.hh" /** diff --git a/src/cpu/o3/store_set.cc b/src/cpu/o3/store_set.cc index df4ee00ad..fc87c417e 100644 --- a/src/cpu/o3/store_set.cc +++ b/src/cpu/o3/store_set.cc @@ -32,6 +32,7 @@ #include "base/misc.hh" #include "base/trace.hh" #include "cpu/o3/store_set.hh" +#include "debug/StoreSet.hh" StoreSet::StoreSet(int _SSIT_size, int _LFST_size) : SSITSize(_SSIT_size), LFSTSize(_LFST_size) diff --git a/src/cpu/o3/thread_context_impl.hh b/src/cpu/o3/thread_context_impl.hh index b179ad50e..c3b7d2248 100755 --- a/src/cpu/o3/thread_context_impl.hh +++ b/src/cpu/o3/thread_context_impl.hh @@ -45,6 +45,7 @@ #include "config/the_isa.hh" #include "cpu/o3/thread_context.hh" #include "cpu/quiesce_event.hh" +#include "debug/O3CPU.hh" #if FULL_SYSTEM template <class Impl> |