tournament.cc (11783:f94c14fd6561) tournament.cc (11793:ef606668d247)
1/*
2 * Copyright (c) 2011, 2014 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 26 unchanged lines hidden (view full) ---

35 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
36 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39 *
40 * Authors: Kevin Lim
41 */
42
1/*
2 * Copyright (c) 2011, 2014 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 26 unchanged lines hidden (view full) ---

35 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
36 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39 *
40 * Authors: Kevin Lim
41 */
42
43#include "cpu/pred/tournament.hh"
44
43#include "base/bitfield.hh"
44#include "base/intmath.hh"
45#include "base/bitfield.hh"
46#include "base/intmath.hh"
45#include "cpu/pred/tournament.hh"
46
47TournamentBP::TournamentBP(const TournamentBPParams *params)
48 : BPredUnit(params),
49 localPredictorSize(params->localPredictorSize),
50 localCtrBits(params->localCtrBits),
51 localHistoryTableSize(params->localHistoryTableSize),
52 localHistoryBits(ceilLog2(params->localPredictorSize)),
53 globalPredictorSize(params->globalPredictorSize),

--- 323 unchanged lines hidden ---
47
48TournamentBP::TournamentBP(const TournamentBPParams *params)
49 : BPredUnit(params),
50 localPredictorSize(params->localPredictorSize),
51 localCtrBits(params->localCtrBits),
52 localHistoryTableSize(params->localHistoryTableSize),
53 localHistoryBits(ceilLog2(params->localPredictorSize)),
54 globalPredictorSize(params->globalPredictorSize),

--- 323 unchanged lines hidden ---