/* Initialize the mPhysMemAddressWidth variable, based on guest RAM size.  */
VOID AddressWidthInitialization(VOID)
/* Initialize the mPhysMemAddressWidth variable, based on guest RAM size.  */
VOID AddressWidthInitialization(VOID)
{
  UINT64  FirstNonAddress;
  FirstNonAddress      = GetFirstNonAddress ();
  mPhysMemAddressWidth = (UINT8)HighBitSet64 (FirstNonAddress);
  if ((FirstNonAddress & (FirstNonAddress - 1)) != 0) {
    ++mPhysMemAddressWidth;
  }
  if (mPhysMemAddressWidth <= 36) {
    mPhysMemAddressWidth = 36;
  }
  ASSERT (mPhysMemAddressWidth <= 48);
}