HotSpot: add checkInRealMode functionality