首页> 外国专利> Method and system using hardware assistance for instruction tracing by revealing executed opcode or instruction

Method and system using hardware assistance for instruction tracing by revealing executed opcode or instruction

机译:通过揭示执行的操作码或指令使用硬件辅助进行指令跟踪的方法和系统

摘要

A method, system, apparatus, and computer program product is presented for assisting instruction tracing operations. A mechanism is provided within the processor for revealing the most recently executed instruction. After the instruction is completed, the opcode of the instruction or the entire instruction is revealed in one of a variety of manners, such as by writing the opcode or instruction to a register that may be read by application-level code. Alternatively, a series of instructions may be stored in a trace buffer within the processor upon the completion of each instruction. In another alternative, the size and address of a trace buffer in memory may be placed into configuration registers, and a series of instructions may be stored in the trace buffer after the completion of each instruction. The tracing operation for the series of instructions may be qualified so that it is performed only in a taken-branch tracing mode.
机译:提出了一种用于辅助指令跟踪操作的方法,系统,装置和计算机程序产品。处理器内提供了一种机制,用于显示最近执行的指令。指令完成后,以多种方式之一显示指令或整个指令的操作码,例如通过将操作码或指令写入可能由应用程序级代码读取的寄存器。可替代地,在每条指令完成之后,一系列指令可以被存储在处理器内的跟踪缓冲器中。在另一替代方案中,可以将存储器中的跟踪缓冲区的大小和地址放入配置寄存器中,并且可以在每个指令完成之后将一系列指令存储在跟踪缓冲区中。该系列指令的跟踪操作可能是合格的,因此只能在分支分支跟踪模式下执行。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号