pteg
uint64_t pteg, ptex;
pteg = (hash & hmask) << 3;
(uintmax_t)(hash & hmask), (uintmax_t)pteg,
for (ptex = pteg; ptex < pteg + 8; ptex++) {
if (ptex == pteg + 8) {
static struct pteg *moea_pteg_table;
struct pteg *pteg;
pteg = &moea_pteg_table[ptegidx];
pt = &pteg->pt[i];
size = moea_pteg_count * sizeof(struct pteg);
moea_pteg_table = (struct pteg *)moea_bootstrap_alloc(size, size);
bzero((void *)moea_pteg_table, moea_pteg_count * sizeof(struct pteg));
int lv1_insert_htab_entry(uint64_t vas_id, uint64_t pteg, uint64_t pte_hi, uint64_t pte_lo, uint64_t lockflags, uint64_t flags, uint64_t *index, uint64_t *evicted_hi, uint64_t *evicted_lo);