bi_mode.hh (13959:ea907b02c800) bi_mode.hh (13960:e1ab93677110)
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;

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

30
31/* @file
32 * Implementation of a bi-mode branch predictor
33 */
34
35#ifndef __CPU_PRED_BI_MODE_PRED_HH__
36#define __CPU_PRED_BI_MODE_PRED_HH__
37
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;

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

30
31/* @file
32 * Implementation of a bi-mode branch predictor
33 */
34
35#ifndef __CPU_PRED_BI_MODE_PRED_HH__
36#define __CPU_PRED_BI_MODE_PRED_HH__
37
38#include "base/sat_counter.hh"
38#include "cpu/pred/bpred_unit.hh"
39#include "cpu/pred/bpred_unit.hh"
39#include "cpu/pred/sat_counter.hh"
40#include "params/BiModeBP.hh"
41
42/**
43 * Implements a bi-mode branch predictor. The bi-mode predictor is a two-level
44 * branch predictor that has three seprate history arrays: a taken array, a
45 * not-taken array, and a choice array. The taken/not-taken arrays are indexed
46 * by a hash of the PC and the global history. The choice array is indexed by
47 * the PC only. Because the taken/not-taken arrays use the same index, they must

--- 66 unchanged lines hidden ---
40#include "params/BiModeBP.hh"
41
42/**
43 * Implements a bi-mode branch predictor. The bi-mode predictor is a two-level
44 * branch predictor that has three seprate history arrays: a taken array, a
45 * not-taken array, and a choice array. The taken/not-taken arrays are indexed
46 * by a hash of the PC and the global history. The choice array is indexed by
47 * the PC only. Because the taken/not-taken arrays use the same index, they must

--- 66 unchanged lines hidden ---