// Find a free ESCR
final ESCR_RES escr = findFreeESCR(escrState, counterState, evt);
final CounterMSRInfo cntInfo = counters[indexOf(counterState, evt)];
// Create the MSRs
selectMSRs[i * 2 + 0] = new MSR(escr.escr, evt.createESCRValue());
selectMSRs[i * 2 + 1] = new MSR(cntInfo.cccrMSRIndex, evt.createCCCRValue());
counterMSRs[i] = new MSR(cntInfo.counterMSRIndex);
i++;
}
thread.setMSRs(counterMSRs, selectMSRs);