Adds support for determining for level limits, including mapping PTL blocks to profiles to check profile-dependent level limits.