Lines Matching refs:sh
61 MPP_SCThreadHistory *sh = new MPP_SCThreadHistory();
63 sh->setNumOrdinalHistories(3);
64 sh->initLocalHistory(1, numEntriesFirstLocalHistories, 4);
65 sh->initLocalHistory(2, numEntriesSecondLocalHistories, 5);
66 sh->initLocalHistory(3, numEntriesThirdLocalHistories, 3);
68 return sh;
86 MPP_SCThreadHistory *sh = static_cast<MPP_SCThreadHistory *>(scHistory);
88 lsum += gPredict((pc << 1) + bi->predBeforeSC, sh->globalHist << 11,
92 lsum += 2.02 * gPredict(branch_pc, sh->getLocalHistory(1, branch_pc),
94 if (sh->getLocalHistory(1, branch_pc) == 2047) lsum += 4;
95 if (sh->getLocalHistory(1, branch_pc) == 0) lsum -= 4;
98 lsum += gPredict(branch_pc, sh->getLocalHistory(3, branch_pc) << 11,
102 lsum += gPredict(branch_pc, sh->getLocalHistory(2, branch_pc),
105 lsum += gPredict(branch_pc, sh->getHistoryStackEntry(),
117 MPP_SCThreadHistory *sh = static_cast<MPP_SCThreadHistory *>(scHistory);
119 gUpdate((pc << 1) + bi->predBeforeSC, taken, sh->globalHist << 11,
122 gUpdate(pc, taken, sh->getLocalHistory(1, pc),
125 gUpdate(pc, taken, sh->getLocalHistory(2, pc),
128 gUpdate(pc, taken, sh->getLocalHistory(3, pc) << 11,
131 gUpdate(pc, taken, sh->getHistoryStackEntry(),
145 MPP_SCThreadHistory *sh = static_cast<MPP_SCThreadHistory *>(scHistory);
148 sh->globalHist = (sh->globalHist << 1) + taken;
149 sh->updateLocalHistory(2, branch_pc, taken,
151 sh->updateLocalHistory(3, branch_pc, taken);
153 sh->updateHistoryStack(corrTarget, taken, inst->isCall(),