bi_mode.cc (11793:ef606668d247) bi_mode.cc (12180:72159e1f6701)
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;

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

63 notTakenCounters[i].setBits(globalCtrBits);
64 }
65
66 historyRegisterMask = mask(globalHistoryBits);
67 choiceHistoryMask = choicePredictorSize - 1;
68 globalHistoryMask = globalPredictorSize - 1;
69
70 choiceThreshold = (ULL(1) << (choiceCtrBits - 1)) - 1;
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;

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

63 notTakenCounters[i].setBits(globalCtrBits);
64 }
65
66 historyRegisterMask = mask(globalHistoryBits);
67 choiceHistoryMask = choicePredictorSize - 1;
68 globalHistoryMask = globalPredictorSize - 1;
69
70 choiceThreshold = (ULL(1) << (choiceCtrBits - 1)) - 1;
71 takenThreshold = (ULL(1) << (choiceCtrBits - 1)) - 1;
72 notTakenThreshold = (ULL(1) << (choiceCtrBits - 1)) - 1;
71 takenThreshold = (ULL(1) << (globalCtrBits - 1)) - 1;
72 notTakenThreshold = (ULL(1) << (globalCtrBits - 1)) - 1;
73}
74
75/*
76 * For an unconditional branch we set its history such that
77 * everything is set to taken. I.e., its choice predictor
78 * chooses the taken array and the taken array predicts taken.
79 */
80void

--- 170 unchanged lines hidden ---
73}
74
75/*
76 * For an unconditional branch we set its history such that
77 * everything is set to taken. I.e., its choice predictor
78 * chooses the taken array and the taken array predicts taken.
79 */
80void

--- 170 unchanged lines hidden ---