tcg: Add tlb_index and tlb_entry helpers