diff options
Diffstat (limited to 'src/cpu/o3/inst_queue_impl.hh')
-rw-r--r-- | src/cpu/o3/inst_queue_impl.hh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/cpu/o3/inst_queue_impl.hh b/src/cpu/o3/inst_queue_impl.hh index 0caee41ed..6a76b49d0 100644 --- a/src/cpu/o3/inst_queue_impl.hh +++ b/src/cpu/o3/inst_queue_impl.hh @@ -441,6 +441,17 @@ InstructionQueue<Impl>::setTimeBuffer(TimeBuffer<TimeStruct> *tb_ptr) } template <class Impl> +bool +InstructionQueue<Impl>::isDrained() const +{ + bool drained = dependGraph.empty() && instsToExecute.empty(); + for (ThreadID tid = 0; tid < numThreads; ++tid) + drained = drained && memDepUnit[tid].isDrained(); + + return drained; +} + +template <class Impl> void InstructionQueue<Impl>::drainSanityCheck() const { |