code improve for cpu instruction debug logging.