summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2006-02-09 14:48:10 -0500
committerGabe Black <gblack@eecs.umich.edu>2006-02-09 14:48:10 -0500
commit5102de83214c057520f0aad4c56bedc665155d65 (patch)
tree77c6fcb6c19f78198512c6c2936b7d9b75f714e4
parent7d9b93d825dccbb9eb09e76478552a5211c9b70e (diff)
parentecfe2cc91f036631f8e81f376927ce75b6d75085 (diff)
downloadgem5-5102de83214c057520f0aad4c56bedc665155d65.tar.xz
Merge gblack@m5.eecs.umich.edu:/bk/multiarch
into ewok.(none):/home/gblack/m5/multiarch --HG-- extra : convert_revision : ae574fbee484019d318ef25034bd4a7e18354aab
-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");
}