iew_impl.hh (10333:6be8945d226b) | iew_impl.hh (10510:7e54a9a9f6b2) |
---|---|
1/* 2 * Copyright (c) 2010-2013 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 --- 367 unchanged lines hidden (view full) --- 376{ 377 scoreboard = sb_ptr; 378} 379 380template <class Impl> 381bool 382DefaultIEW<Impl>::isDrained() const 383{ | 1/* 2 * Copyright (c) 2010-2013 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 --- 367 unchanged lines hidden (view full) --- 376{ 377 scoreboard = sb_ptr; 378} 379 380template <class Impl> 381bool 382DefaultIEW<Impl>::isDrained() const 383{ |
384 bool drained(ldstQueue.isDrained()); | 384 bool drained = ldstQueue.isDrained() && instQueue.isDrained(); |
385 386 for (ThreadID tid = 0; tid < numThreads; tid++) { 387 if (!insts[tid].empty()) { 388 DPRINTF(Drain, "%i: Insts not empty.\n", tid); 389 drained = false; 390 } 391 if (!skidBuffer[tid].empty()) { 392 DPRINTF(Drain, "%i: Skid buffer not empty.\n", tid); --- 1250 unchanged lines hidden --- | 385 386 for (ThreadID tid = 0; tid < numThreads; tid++) { 387 if (!insts[tid].empty()) { 388 DPRINTF(Drain, "%i: Insts not empty.\n", tid); 389 drained = false; 390 } 391 if (!skidBuffer[tid].empty()) { 392 DPRINTF(Drain, "%i: Skid buffer not empty.\n", tid); --- 1250 unchanged lines hidden --- |