From 6decd70bfbc5eb877e4d897ee3d71d478b564f2d Mon Sep 17 00:00:00 2001 From: Matt Horsnell Date: Thu, 17 Oct 2013 10:20:45 -0500 Subject: cpu: add consistent guarding to *_impl.hh files. --- src/cpu/base_dyn_inst_impl.hh | 5 +++++ src/cpu/checker/cpu_impl.hh | 5 +++++ src/cpu/o3/commit_impl.hh | 4 ++++ src/cpu/o3/decode_impl.hh | 5 +++++ src/cpu/o3/dyn_inst_impl.hh | 4 ++++ src/cpu/o3/fetch_impl.hh | 5 +++++ src/cpu/o3/iew_impl.hh | 5 +++++ src/cpu/o3/inst_queue_impl.hh | 5 +++++ src/cpu/o3/lsq_impl.hh | 5 +++++ src/cpu/o3/lsq_unit_impl.hh | 5 +++++ src/cpu/o3/mem_dep_unit_impl.hh | 5 +++++ src/cpu/o3/rename_impl.hh | 5 +++++ src/cpu/o3/rob_impl.hh | 5 +++++ src/cpu/o3/thread_context_impl.hh | 4 ++++ src/cpu/ozone/back_end_impl.hh | 5 +++++ src/cpu/ozone/cpu_impl.hh | 5 +++++ src/cpu/ozone/dyn_inst_impl.hh | 5 +++++ src/cpu/ozone/front_end_impl.hh | 4 ++++ src/cpu/ozone/inorder_back_end_impl.hh | 4 ++++ src/cpu/ozone/inst_queue_impl.hh | 5 +++++ src/cpu/ozone/lsq_unit_impl.hh | 3 +++ src/cpu/ozone/lw_back_end_impl.hh | 3 +++ src/cpu/ozone/lw_lsq_impl.hh | 5 +++++ src/cpu/ozone/rename_table_impl.hh | 4 ++++ src/cpu/pred/bpred_unit_impl.hh | 5 +++++ src/mem/cache/cache_impl.hh | 5 +++++ 26 files changed, 120 insertions(+) (limited to 'src') diff --git a/src/cpu/base_dyn_inst_impl.hh b/src/cpu/base_dyn_inst_impl.hh index 663159b94..bc581ed2d 100644 --- a/src/cpu/base_dyn_inst_impl.hh +++ b/src/cpu/base_dyn_inst_impl.hh @@ -40,6 +40,9 @@ * Authors: Kevin Lim */ +#ifndef __CPU_BASE_DYN_INST_IMPL_HH__ +#define __CPU_BASE_DYN_INST_IMPL_HH__ + #include #include #include @@ -228,3 +231,5 @@ BaseDynInst::eaSrcsReady() return true; } + +#endif//__CPU_BASE_DYN_INST_IMPL_HH__ diff --git a/src/cpu/checker/cpu_impl.hh b/src/cpu/checker/cpu_impl.hh index e18644e0e..73bacdc05 100644 --- a/src/cpu/checker/cpu_impl.hh +++ b/src/cpu/checker/cpu_impl.hh @@ -42,6 +42,9 @@ * Geoffrey Blake */ +#ifndef __CPU_CHECKER_CPU_IMPL_HH__ +#define __CPU_CHECKER_CPU_IMPL_HH__ + #include #include @@ -684,3 +687,5 @@ Checker::dumpInsts() } } + +#endif//__CPU_CHECKER_CPU_IMPL_HH__ diff --git a/src/cpu/o3/commit_impl.hh b/src/cpu/o3/commit_impl.hh index 2c1c9fef2..becdfd06c 100644 --- a/src/cpu/o3/commit_impl.hh +++ b/src/cpu/o3/commit_impl.hh @@ -40,6 +40,8 @@ * Authors: Kevin Lim * Korey Sewell */ +#ifndef __CPU_O3_COMMIT_IMPL_HH__ +#define __CPU_O3_COMMIT_IMPL_HH__ #include #include @@ -1540,3 +1542,5 @@ DefaultCommit::oldestReady() return InvalidThreadID; } } + +#endif//__CPU_O3_COMMIT_IMPL_HH__ diff --git a/src/cpu/o3/decode_impl.hh b/src/cpu/o3/decode_impl.hh index 9ab672931..c78e7f211 100644 --- a/src/cpu/o3/decode_impl.hh +++ b/src/cpu/o3/decode_impl.hh @@ -40,6 +40,9 @@ * Authors: Kevin Lim */ +#ifndef __CPU_O3_DECODE_IMPL_HH__ +#define __CPU_O3_DECODE_IMPL_HH__ + #include "arch/types.hh" #include "base/trace.hh" #include "config/the_isa.hh" @@ -767,3 +770,5 @@ DefaultDecode::decodeInsts(ThreadID tid) wroteToTimeBuffer = true; } } + +#endif//__CPU_O3_DECODE_IMPL_HH__ diff --git a/src/cpu/o3/dyn_inst_impl.hh b/src/cpu/o3/dyn_inst_impl.hh index 347d30324..4e1492077 100644 --- a/src/cpu/o3/dyn_inst_impl.hh +++ b/src/cpu/o3/dyn_inst_impl.hh @@ -40,6 +40,9 @@ * Authors: Kevin Lim */ +#ifndef __CPU_O3_DYN_INST_IMPL_HH__ +#define __CPU_O3_DYN_INST_IMPL_HH__ + #include "base/cp_annotate.hh" #include "cpu/o3/dyn_inst.hh" #include "sim/full_system.hh" @@ -255,3 +258,4 @@ BaseO3DynInst::syscall(int64_t callnum) } } +#endif//__CPU_O3_DYN_INST_IMPL_HH__ diff --git a/src/cpu/o3/fetch_impl.hh b/src/cpu/o3/fetch_impl.hh index f6e46cc26..d97c5ba36 100644 --- a/src/cpu/o3/fetch_impl.hh +++ b/src/cpu/o3/fetch_impl.hh @@ -41,6 +41,9 @@ * Korey Sewell */ +#ifndef __CPU_O3_FETCH_IMPL_HH__ +#define __CPU_O3_FETCH_IMPL_HH__ + #include #include #include @@ -1631,3 +1634,5 @@ DefaultFetch::profileStall(ThreadID tid) { tid, fetchStatus[tid]); } } + +#endif//__CPU_O3_FETCH_IMPL_HH__ diff --git a/src/cpu/o3/iew_impl.hh b/src/cpu/o3/iew_impl.hh index 947318d60..6c5c57fb7 100644 --- a/src/cpu/o3/iew_impl.hh +++ b/src/cpu/o3/iew_impl.hh @@ -40,6 +40,9 @@ * Authors: Kevin Lim */ +#ifndef __CPU_O3_IEW_IMPL_IMPL_HH__ +#define __CPU_O3_IEW_IMPL_IMPL_HH__ + // @todo: Fix the instantaneous communication among all the stages within // iew. There's a clear delay between issue and execute, yet backwards // communication happens simultaneously. @@ -1671,3 +1674,5 @@ DefaultIEW::checkMisprediction(DynInstPtr &inst) } } } + +#endif//__CPU_O3_IEW_IMPL_IMPL_HH__ diff --git a/src/cpu/o3/inst_queue_impl.hh b/src/cpu/o3/inst_queue_impl.hh index 1c86b7c89..f0b682602 100644 --- a/src/cpu/o3/inst_queue_impl.hh +++ b/src/cpu/o3/inst_queue_impl.hh @@ -42,6 +42,9 @@ * Korey Sewell */ +#ifndef __CPU_O3_INST_QUEUE_IMPL_HH__ +#define __CPU_O3_INST_QUEUE_IMPL_HH__ + #include #include @@ -1508,3 +1511,5 @@ InstructionQueue::dumpInsts() ++num; } } + +#endif//__CPU_O3_INST_QUEUE_IMPL_HH__ diff --git a/src/cpu/o3/lsq_impl.hh b/src/cpu/o3/lsq_impl.hh index 70db92714..7e89968a8 100644 --- a/src/cpu/o3/lsq_impl.hh +++ b/src/cpu/o3/lsq_impl.hh @@ -40,6 +40,9 @@ * Authors: Korey Sewell */ +#ifndef __CPU_O3_LSQ_IMPL_HH__ +#define __CPU_O3_LSQ_IMPL_HH__ + #include #include #include @@ -658,3 +661,5 @@ LSQ::dumpInsts() const thread[tid].dumpInsts(); } } + +#endif//__CPU_O3_LSQ_IMPL_HH__ diff --git a/src/cpu/o3/lsq_unit_impl.hh b/src/cpu/o3/lsq_unit_impl.hh index 44b8e9041..77b67ac69 100644 --- a/src/cpu/o3/lsq_unit_impl.hh +++ b/src/cpu/o3/lsq_unit_impl.hh @@ -42,6 +42,9 @@ * Korey Sewell */ +#ifndef __CPU_O3_LSQ_UNIT_IMPL_HH__ +#define __CPU_O3_LSQ_UNIT_IMPL_HH__ + #include "arch/generic/debugfaults.hh" #include "arch/locked_mem.hh" #include "base/str.hh" @@ -1289,3 +1292,5 @@ LSQUnit::dumpInsts() const cprintf("\n"); } + +#endif//__CPU_O3_LSQ_UNIT_IMPL_HH__ diff --git a/src/cpu/o3/mem_dep_unit_impl.hh b/src/cpu/o3/mem_dep_unit_impl.hh index 7fbea0216..009ae2b48 100644 --- a/src/cpu/o3/mem_dep_unit_impl.hh +++ b/src/cpu/o3/mem_dep_unit_impl.hh @@ -40,6 +40,9 @@ * Authors: Kevin Lim */ +#ifndef __CPU_O3_MEM_DEP_UNIT_IMPL_HH__ +#define __CPU_O3_MEM_DEP_UNIT_IMPL_HH__ + #include #include "cpu/o3/inst_queue.hh" @@ -594,3 +597,5 @@ MemDepUnit::dumpLists() cprintf("Memory dependence entries: %i\n", MemDepEntry::memdep_count); #endif } + +#endif//__CPU_O3_MEM_DEP_UNIT_IMPL_HH__ diff --git a/src/cpu/o3/rename_impl.hh b/src/cpu/o3/rename_impl.hh index db7189371..242d5a4e3 100644 --- a/src/cpu/o3/rename_impl.hh +++ b/src/cpu/o3/rename_impl.hh @@ -42,6 +42,9 @@ * Korey Sewell */ +#ifndef __CPU_O3_RENAME_IMPL_HH__ +#define __CPU_O3_RENAME_IMPL_HH__ + #include #include "arch/isa_traits.hh" @@ -1383,3 +1386,5 @@ DefaultRename::dumpHistory() } } } + +#endif//__CPU_O3_RENAME_IMPL_HH__ diff --git a/src/cpu/o3/rob_impl.hh b/src/cpu/o3/rob_impl.hh index b33221f15..c8ceb2909 100644 --- a/src/cpu/o3/rob_impl.hh +++ b/src/cpu/o3/rob_impl.hh @@ -41,6 +41,9 @@ * Korey Sewell */ +#ifndef __CPU_O3_ROB_IMPL_HH__ +#define __CPU_O3_ROB_IMPL_HH__ + #include #include "cpu/o3/rob.hh" @@ -560,3 +563,5 @@ ROB::findInst(ThreadID tid, InstSeqNum squash_inst) } return NULL; } + +#endif//__CPU_O3_ROB_IMPL_HH__ diff --git a/src/cpu/o3/thread_context_impl.hh b/src/cpu/o3/thread_context_impl.hh index 006d325fc..c818260f4 100755 --- a/src/cpu/o3/thread_context_impl.hh +++ b/src/cpu/o3/thread_context_impl.hh @@ -42,6 +42,9 @@ * Korey Sewell */ +#ifndef __CPU_O3_THREAD_CONTEXT_IMPL_HH__ +#define __CPU_O3_THREAD_CONTEXT_IMPL_HH__ + #include "arch/kernel_stats.hh" #include "arch/registers.hh" #include "config/the_isa.hh" @@ -297,6 +300,7 @@ O3ThreadContext::setMiscRegNoEffect(int misc_reg, const MiscReg &val) conditionalSquash(); } +#endif//__CPU_O3_THREAD_CONTEXT_IMPL_HH__ template void O3ThreadContext::setMiscReg(int misc_reg, const MiscReg &val) diff --git a/src/cpu/ozone/back_end_impl.hh b/src/cpu/ozone/back_end_impl.hh index bcc897369..a72cf67c0 100644 --- a/src/cpu/ozone/back_end_impl.hh +++ b/src/cpu/ozone/back_end_impl.hh @@ -28,6 +28,9 @@ * Authors: Kevin Lim */ +#ifndef __CPU_OZONE_BACK_END_IMPL_HH__ +#define __CPU_OZONE_BACK_END_IMPL_HH__ + #include "cpu/ozone/back_end.hh" #include "encumbered/cpu/full/op_class.hh" @@ -1912,3 +1915,5 @@ BackEnd::dumpInsts() ++num; } } + +#endif//__CPU_OZONE_BACK_END_IMPL_HH__ diff --git a/src/cpu/ozone/cpu_impl.hh b/src/cpu/ozone/cpu_impl.hh index b4b49a55b..ff99cc7f6 100644 --- a/src/cpu/ozone/cpu_impl.hh +++ b/src/cpu/ozone/cpu_impl.hh @@ -30,6 +30,9 @@ * Nathan Binkert */ +#ifndef __CPU_OZONE_CPU_IMPL_HH__ +#define __CPU_OZONE_CPU_IMPL_HH__ + #include "arch/alpha/osfpal.hh" #include "arch/isa_traits.hh" // For MachInst #include "arch/kernel_stats.hh" @@ -868,6 +871,8 @@ OzoneCPU::OzoneTC::setMiscRegNoEffect(int misc_reg, const MiscReg &val) } } +#endif//__CPU_OZONE_CPU_IMPL_HH__ + template void OzoneCPU::OzoneTC::setMiscReg(int misc_reg, const MiscReg &val) diff --git a/src/cpu/ozone/dyn_inst_impl.hh b/src/cpu/ozone/dyn_inst_impl.hh index 2066c58d7..7c0bd7a02 100644 --- a/src/cpu/ozone/dyn_inst_impl.hh +++ b/src/cpu/ozone/dyn_inst_impl.hh @@ -28,6 +28,9 @@ * Authors: Kevin Lim */ +#ifndef __CPU_OZONE_DYN_INST_IMPL_HH__ +#define __CPU_OZONE_DYN_INST_IMPL_HH__ + #include "config/the_isa.hh" #include "cpu/ozone/dyn_inst.hh" #include "kern/kernel_stats.hh" @@ -270,3 +273,5 @@ OzoneDynInst::syscall(uint64_t &callnum) { this->cpu->syscall(callnum); } + +#endif//__CPU_OZONE_DYN_INST_IMPL_HH__ diff --git a/src/cpu/ozone/front_end_impl.hh b/src/cpu/ozone/front_end_impl.hh index 66bcc6227..3b602b82e 100644 --- a/src/cpu/ozone/front_end_impl.hh +++ b/src/cpu/ozone/front_end_impl.hh @@ -27,6 +27,8 @@ * * Authors: Kevin Lim */ +#ifndef __CPU_OZONE_BACK_END_IMPL_HH__ +#define __CPU_OZONE_BACK_END_IMPL_HH__ #include "arch/isa_traits.hh" #include "arch/utility.hh" @@ -989,3 +991,5 @@ FrontEnd::dumpInsts() buff_it++; } } + +#endif//__CPU_OZONE_BACK_END_IMPL_HH__ diff --git a/src/cpu/ozone/inorder_back_end_impl.hh b/src/cpu/ozone/inorder_back_end_impl.hh index 7bb876e4a..8d5511f1c 100644 --- a/src/cpu/ozone/inorder_back_end_impl.hh +++ b/src/cpu/ozone/inorder_back_end_impl.hh @@ -28,6 +28,9 @@ * Authors: Kevin Lim */ +#ifndef __CPU_OZONE_INORDER_BACK_END_IMPL_HH__ +#define __CPU_OZONE_INORDER_BACK_END_IMPL_HH__ + #include "arch/types.hh" #include "config/the_isa.hh" #include "cpu/ozone/inorder_back_end.hh" @@ -521,3 +524,4 @@ InorderBackEnd::DCacheCompletionEvent::description() const { return "DCache completion"; } +#endif//__CPU_OZONE_INORDER_BACK_END_IMPL_HH__ diff --git a/src/cpu/ozone/inst_queue_impl.hh b/src/cpu/ozone/inst_queue_impl.hh index f2f88760b..babee399d 100644 --- a/src/cpu/ozone/inst_queue_impl.hh +++ b/src/cpu/ozone/inst_queue_impl.hh @@ -28,6 +28,9 @@ * Authors: Kevin Lim */ +#ifndef __CPU_OZONE_INST_QUEUE_IMPL_HH__ +#define __CPU_OZONE_INST_QUEUE_IMPL_HH__ + // Todo: // Current ordering allows for 0 cycle added-to-scheduled. Could maybe fake // it; either do in reverse order, or have added instructions put into a @@ -1342,3 +1345,5 @@ InstQueue::dumpInsts() */ } } + +#define//__CPU_OZONE_INST_QUEUE_IMPL_HH__ diff --git a/src/cpu/ozone/lsq_unit_impl.hh b/src/cpu/ozone/lsq_unit_impl.hh index 3ee96585a..a2d431cc2 100644 --- a/src/cpu/ozone/lsq_unit_impl.hh +++ b/src/cpu/ozone/lsq_unit_impl.hh @@ -27,6 +27,8 @@ * * Authors: Kevin Lim */ +#ifndef __CPU_OZONE_LSQ_UNIT_IMPL_HH__ +#define __CPU_OZONE_LSQ_UNIT_IMPL_HH__ #include "base/str.hh" #include "config/the_isa.hh" @@ -839,3 +841,4 @@ OzoneLSQ::decrLdIdx(int &load_idx) if (--load_idx < 0) load_idx += LQEntries; } +#endif//__CPU_OZONE_LSQ_UNIT_IMPL_HH__ diff --git a/src/cpu/ozone/lw_back_end_impl.hh b/src/cpu/ozone/lw_back_end_impl.hh index 79ae43465..c979d23b6 100644 --- a/src/cpu/ozone/lw_back_end_impl.hh +++ b/src/cpu/ozone/lw_back_end_impl.hh @@ -27,6 +27,8 @@ * * Authors: Kevin Lim */ +#ifndef __CPU_OZONE_LW_BACK_END_IMPL_HH__ +#define __CPU_OZONE_LW_BACK_END_IMPL_HH__ #include "config/the_isa.hh" #include "cpu/checker/cpu.hh" @@ -1672,3 +1674,4 @@ LWBackEnd::dumpInsts() } cprintf("\n"); } +#endif//__CPU_OZONE_LW_BACK_END_IMPL_HH__ diff --git a/src/cpu/ozone/lw_lsq_impl.hh b/src/cpu/ozone/lw_lsq_impl.hh index 79b2b8f16..ed036d664 100644 --- a/src/cpu/ozone/lw_lsq_impl.hh +++ b/src/cpu/ozone/lw_lsq_impl.hh @@ -28,6 +28,9 @@ * Authors: Kevin Lim */ +#ifndef __CPU_OZONE_LW_LSQ_IMPL_HH__ +#define __CPU_OZONE_LW_LSQ_IMPL_HH__ + #include "base/str.hh" #include "config/the_isa.hh" #include "cpu/checker/cpu.hh" @@ -961,3 +964,5 @@ OzoneLWLSQ::takeOverFrom(ThreadContext *old_tc) blockedLoadSeqNum = 0; } + +#endif//__CPU_OZONE_LW_LSQ_IMPL_HH__ diff --git a/src/cpu/ozone/rename_table_impl.hh b/src/cpu/ozone/rename_table_impl.hh index e8071e2b3..06551b3cb 100644 --- a/src/cpu/ozone/rename_table_impl.hh +++ b/src/cpu/ozone/rename_table_impl.hh @@ -27,6 +27,8 @@ * * Authors: Kevin Lim */ +#ifndef __CPU_OZONE_RENAME_TABLE_IMPL_HH__ +#define __CPU_OZONE_RENAME_TABLE_IMPL_HH__ #include // Not really sure what to include to get NULL @@ -52,3 +54,5 @@ RenameTable::copyFrom(const RenameTable &table_to_copy) table[i] = table_to_copy.table[i]; } } + +#endif//__CPU_OZONE_RENAME_TABLE_IMPL_HH__ diff --git a/src/cpu/pred/bpred_unit_impl.hh b/src/cpu/pred/bpred_unit_impl.hh index c3d1b7e9b..2dc82ec6d 100644 --- a/src/cpu/pred/bpred_unit_impl.hh +++ b/src/cpu/pred/bpred_unit_impl.hh @@ -42,6 +42,9 @@ * Authors: Kevin Lim */ +#ifndef __CPU_PRED_BPRED_UNIT_IMPL_HH__ +#define __CPU_PRED_BPRED_UNIT_IMPL_HH__ + #include #include "arch/isa_traits.hh" @@ -534,3 +537,5 @@ BPredUnit::dump() } } } + +#endif//__CPU_PRED_BPRED_UNIT_IMPL_HH__ diff --git a/src/mem/cache/cache_impl.hh b/src/mem/cache/cache_impl.hh index b4ace5f6c..6d7011819 100644 --- a/src/mem/cache/cache_impl.hh +++ b/src/mem/cache/cache_impl.hh @@ -46,6 +46,9 @@ * Andreas Sandberg */ +#ifndef __MEM_CACHE_CACHE_IMPL_HH__ +#define __MEM_CACHE_CACHE_IMPL_HH__ + /** * @file * Cache definitions. @@ -1899,3 +1902,5 @@ MemSidePort::MemSidePort(const std::string &_name, Cache *_cache, _queue(*_cache, *this, _label), cache(_cache) { } + +#endif//__MEM_CACHE_CACHE_IMPL_HH__ -- cgit v1.2.3