From 10650fc5257c2351e95292747ad6099cea9dfb1f Mon Sep 17 00:00:00 2001 From: Andreas Hansson Date: Thu, 27 Jun 2013 05:49:49 -0400 Subject: cpu: Consider instructions waiting for FU completion in draining This patch changes the IEW drain check to include the FU pool as there can be instructions that are "stored" in FU completion events and thus not covered by the existing checks. With this patch, we simply include a check to see if all the FUs are considered non-busy in the next tick. Without this patch, the pc-switcheroo-full regression fails after minor changes to the cache timing (aligning to clock edge). --- src/cpu/o3/fu_pool.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/cpu/o3/fu_pool.hh') diff --git a/src/cpu/o3/fu_pool.hh b/src/cpu/o3/fu_pool.hh index 85912af3a..79b2adf83 100644 --- a/src/cpu/o3/fu_pool.hh +++ b/src/cpu/o3/fu_pool.hh @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012 ARM Limited + * Copyright (c) 2012-2013 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall @@ -169,8 +169,8 @@ class FUPool : public SimObject return maxIssueLatencies[capability]; } - /** Perform sanity checks after a drain. */ - void drainSanityCheck() const; + /** Have all the FUs drained? */ + bool isDrained() const; /** Takes over from another CPU's thread. */ void takeOverFrom() {}; -- cgit v1.2.3