summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2006-02-09 14:37:44 -0500
committerGabe Black <gblack@eecs.umich.edu>2006-02-09 14:37:44 -0500
commitecfe2cc91f036631f8e81f376927ce75b6d75085 (patch)
tree4c63796f6f508469717f45b0bfeb6454a3e32eda
parenta0f65246bfac279130aa67851f9c4d5c27e967b1 (diff)
parent524da7cd20dae5416cd0962a9b9bd49dcf92ee51 (diff)
downloadgem5-ecfe2cc91f036631f8e81f376927ce75b6d75085.tar.xz
Merge zizzer.eecs.umich.edu:/z/m5/Bitkeeper/m5
into zizzer.eecs.umich.edu:/z/m5/Bitkeeper/multiarch --HG-- extra : convert_revision : 6b218e875e5c6299cd38727071e401a3e729266a
-rw-r--r--base/sched_list.hh4
1 files changed, 3 insertions, 1 deletions
diff --git a/base/sched_list.hh b/base/sched_list.hh
index 0e2f3ddcb..f794e3514 100644
--- a/base/sched_list.hh
+++ b/base/sched_list.hh
@@ -30,8 +30,10 @@
#define SCHED_LIST_HH
#include <list>
+#include "base/intmath.hh"
#include "base/misc.hh"
+
// Any types you use this class for must be covered here...
namespace {
void ClearEntry(int &i) { i = 0; };
@@ -80,7 +82,7 @@ SchedList<T>::SchedList(unsigned _size)
size = _size;
// size must be a power of two
- if (size & (size-1)) {
+ if (!isPowerOf2(size)) {
panic("SchedList: size must be a power of two");
}