1/* 2 * Copyright (c) 2014 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 18 unchanged lines hidden (view full) --- 27 * 28 * Authors: Anthony Gutierrez 29 */ 30 31/* @file 32 * Implementation of a bi-mode branch predictor 33 */ 34 |
35#include "cpu/pred/bi_mode.hh" 36 |
37#include "base/bitfield.hh" 38#include "base/intmath.hh" |
39 40BiModeBP::BiModeBP(const BiModeBPParams *params) 41 : BPredUnit(params), 42 globalHistoryReg(params->numThreads, 0), 43 globalHistoryBits(ceilLog2(params->globalPredictorSize)), 44 choicePredictorSize(params->choicePredictorSize), 45 choiceCtrBits(params->choiceCtrBits), 46 globalPredictorSize(params->globalPredictorSize), --- 204 unchanged lines hidden --- |