diff options
Diffstat (limited to 'cpu/beta_cpu/btb.cc')
-rw-r--r-- | cpu/beta_cpu/btb.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cpu/beta_cpu/btb.cc b/cpu/beta_cpu/btb.cc index 65b7fffa4..92864dbaa 100644 --- a/cpu/beta_cpu/btb.cc +++ b/cpu/beta_cpu/btb.cc @@ -26,8 +26,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include <math.h> - +#include "base/intmath.hh" #include "base/trace.hh" #include "cpu/beta_cpu/btb.hh" @@ -53,7 +52,7 @@ DefaultBTB::DefaultBTB(unsigned _numEntries, tagMask = (1 << tagBits) - 1; - tagShiftAmt = instShiftAmt + (int)log2(numEntries); + tagShiftAmt = instShiftAmt + FloorLog2(numEntries); } inline |