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

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

82 // false: predict not-taken
83 bool notTakenPred;
84 // the final taken/not-taken prediction
85 // true: predict taken
86 // false: predict not-taken
87 bool finalPred;
88 };
89
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;

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

82 // false: predict not-taken
83 bool notTakenPred;
84 // the final taken/not-taken prediction
85 // true: predict taken
86 // false: predict not-taken
87 bool finalPred;
88 };
89
90 // choice predictors
91 std::vector<SatCounter> choiceCounters;
92 // taken direction predictors
93 std::vector<SatCounter> takenCounters;
94 // not-taken direction predictors
95 std::vector<SatCounter> notTakenCounters;
96
97 std::vector<unsigned> globalHistoryReg;
98 unsigned globalHistoryBits;
99 unsigned historyRegisterMask;
100
101 unsigned choicePredictorSize;
102 unsigned choiceCtrBits;
103 unsigned choiceHistoryMask;
104 unsigned globalPredictorSize;
105 unsigned globalCtrBits;
106 unsigned globalHistoryMask;
107
90 std::vector<unsigned> globalHistoryReg;
91 unsigned globalHistoryBits;
92 unsigned historyRegisterMask;
93
94 unsigned choicePredictorSize;
95 unsigned choiceCtrBits;
96 unsigned choiceHistoryMask;
97 unsigned globalPredictorSize;
98 unsigned globalCtrBits;
99 unsigned globalHistoryMask;
100
101 // choice predictors
102 std::vector<SatCounter> choiceCounters;
103 // taken direction predictors
104 std::vector<SatCounter> takenCounters;
105 // not-taken direction predictors
106 std::vector<SatCounter> notTakenCounters;
107
108 unsigned choiceThreshold;
109 unsigned takenThreshold;
110 unsigned notTakenThreshold;
111};
112
113#endif // __CPU_PRED_BI_MODE_PRED_HH__
108 unsigned choiceThreshold;
109 unsigned takenThreshold;
110 unsigned notTakenThreshold;
111};
112
113#endif // __CPU_PRED_BI_MODE_PRED_HH__