Lines Matching defs:sh
63 MPP_SCThreadHistory *sh = new MPP_SCThreadHistory();
65 sh->setNumOrdinalHistories(1);
66 sh->initLocalHistory(1, numEntriesFirstLocalHistories, 4);
68 return sh;
85 MPP_SCThreadHistory *sh = static_cast<MPP_SCThreadHistory *>(scHistory);
87 lsum += gPredict((pc << 1) + bi->predBeforeSC, sh->globalHist << 11,
91 lsum += 2 * gPredict(branch_pc, sh->getLocalHistory(1, branch_pc),
93 if (sh->getLocalHistory(1, branch_pc) == 2047) lsum += 4;
94 if (sh->getLocalHistory(1, branch_pc) == 0) lsum -= 4;
96 lsum += gPredict(branch_pc, sh->getHistoryStackEntry(),
108 MPP_SCThreadHistory *sh = static_cast<MPP_SCThreadHistory *>(scHistory);
110 gUpdate((pc << 1) + bi->predBeforeSC, taken, sh->globalHist << 11,
113 gUpdate(pc, taken, sh->getLocalHistory(1, pc),
116 gUpdate(pc, taken, sh->getHistoryStackEntry(),
130 MPP_SCThreadHistory *sh = static_cast<MPP_SCThreadHistory *>(scHistory);
133 sh->globalHist = (sh->globalHist << 1) + taken;
135 sh->updateHistoryStack(corrTarget, taken, inst->isCall(),