summaryrefslogtreecommitdiff
path: root/src/cpu/o3/fu_pool.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/o3/fu_pool.cc')
-rw-r--r--src/cpu/o3/fu_pool.cc12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/cpu/o3/fu_pool.cc b/src/cpu/o3/fu_pool.cc
index 78af428db..3edc2c35b 100644
--- a/src/cpu/o3/fu_pool.cc
+++ b/src/cpu/o3/fu_pool.cc
@@ -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
@@ -255,12 +255,14 @@ FUPool::dump()
}
}
-void
-FUPool::drainSanityCheck() const
+bool
+FUPool::isDrained() const
{
- assert(unitsToBeFreed.empty());
+ bool is_drained = true;
for (int i = 0; i < numFU; i++)
- assert(!unitBusy[i]);
+ is_drained = is_drained && !unitBusy[i];
+
+ return is_drained;
}
//