发明名称 Diagnosing code using single step execution
摘要 A method and apparatus for controlling a processor to execute in a single step mode such that a single instruction from the instruction stream is executed, the processor determines if the single instruction is one of at least one predetermined type of instruction and stores a type indicator in a data storage location and a diagnostic exception is taken after the processor has processed the single instruction. Additionally, a diagnostic operation is performed including accessing the type indicator stored in the data storage location and, when the single instruction was not one of the predetermined type, controlling the processor to continue executing instructions in the single step mode, and, when the single instruction was one of the at least one predetermined type, controlling the processor to exit the single step mode and not execute the next instruction within the instruction stream as a single instruction followed by an exception.
申请公布号 US9201749(B2) 申请公布日期 2015.12.01
申请号 US201414448038 申请日期 2014.07.31
申请人 ARM LIMITED 发明人 Williams Michael John;Grisenthwaite Richard Roy
分类号 G06F11/00;G06F11/22;G06F11/36 主分类号 G06F11/00
代理机构 Nixon & Vanderhye, P.C. 代理人 Nixon & Vanderhye, P.C.
主权项 1. A method for diagnosing a processor processing a stream of instructions comprising: (i) controlling said processor to execute in a single step mode such that a single instruction from said instruction stream is executed, said processor determines if said single instruction is one of at least one predetermined type of instruction and stores a type indicator in a data storage location and a diagnostic exception is taken after said processor has processed said single instruction; (ii) performing diagnostic operations following said diagnostic exception including: accessing said type indicator stored in said data storage location; and (iiia) in response to said type indicator indicating said single instruction was not one of said predetermined type controlling said processor to continue executing instructions in said single step mode such that a next single instruction is executed on return from said diagnostic exception; (iiib) in response to said type indicator indicating said single instruction was one of said at least one predetermined type controlling said processor to exit said single step mode and not execute said next instruction within said instruction stream as a single instruction followed by a diagnostic exception.
地址 Cambridge GB