inst_queue_impl.hh (10333:6be8945d226b) inst_queue_impl.hh (10510:7e54a9a9f6b2)
1/*
2 * Copyright (c) 2011-2014 ARM Limited
3 * Copyright (c) 2013 Advanced Micro Devices, Inc.
4 * All rights reserved.
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating

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

436InstructionQueue<Impl>::setTimeBuffer(TimeBuffer<TimeStruct> *tb_ptr)
437{
438 timeBuffer = tb_ptr;
439
440 fromCommit = timeBuffer->getWire(-commitToIEWDelay);
441}
442
443template <class Impl>
1/*
2 * Copyright (c) 2011-2014 ARM Limited
3 * Copyright (c) 2013 Advanced Micro Devices, Inc.
4 * All rights reserved.
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating

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

436InstructionQueue<Impl>::setTimeBuffer(TimeBuffer<TimeStruct> *tb_ptr)
437{
438 timeBuffer = tb_ptr;
439
440 fromCommit = timeBuffer->getWire(-commitToIEWDelay);
441}
442
443template <class Impl>
444bool
445InstructionQueue<Impl>::isDrained() const
446{
447 bool drained = dependGraph.empty() && instsToExecute.empty();
448 for (ThreadID tid = 0; tid < numThreads; ++tid)
449 drained = drained && memDepUnit[tid].isDrained();
450
451 return drained;
452}
453
454template <class Impl>
444void
445InstructionQueue<Impl>::drainSanityCheck() const
446{
447 assert(dependGraph.empty());
448 assert(instsToExecute.empty());
449 for (ThreadID tid = 0; tid < numThreads; ++tid)
450 memDepUnit[tid].drainSanityCheck();
451}

--- 1111 unchanged lines hidden ---
455void
456InstructionQueue<Impl>::drainSanityCheck() const
457{
458 assert(dependGraph.empty());
459 assert(instsToExecute.empty());
460 for (ThreadID tid = 0; tid < numThreads; ++tid)
461 memDepUnit[tid].drainSanityCheck();
462}

--- 1111 unchanged lines hidden ---