Fix cpu state checks for x64