-
公开(公告)号:US20160371501A1
公开(公告)日:2016-12-22
申请号:US15189284
申请日:2016-06-22
Applicant: ARM LIMITED
Inventor: John Michael HORLEY , Michael John WILLIAMS , Simon John CRASKE , Uma Maheswari RAMALINGAM
IPC: G06F21/62
CPC classification number: G06F21/74
Abstract: A data processing apparatus comprises a processing element having associated memory storage and one or more registers, the processing element being configured to perform processing activities in two or more security modes so as to inhibit a processing activity performed in one of the security modes from accessing at least some information associated with a processing activity performed in another of the security modes; in which the processing element is configured, in response to a function call causing a branch from a processing activity in a first security mode to a processing activity in a second security mode, to store the contents of one or more of the registers in the memory storage and, in response to a branch return to the first security mode, to retrieve the register contents from the memory storage; and trace apparatus configured to generate items of trace data indicative of processing activities of the processing element; in which the trace apparatus is configured to detect a branch return operation by the processing element and to generate one or more items of trace data relating to the branch return operation; and in which the trace apparatus is configured to detect the processing element retrieving register contents from the memory storage in response to a branch return to the first security mode and to generate one or more further items of trace data relating to the retrieval of the register contents from the memory storage.
Abstract translation: 数据处理装置包括具有相关联的存储器存储器和一个或多个寄存器的处理元件,处理元件被配置为以两个或更多个安全模式执行处理活动,以便禁止在一个安全模式中执行的处理活动以访问 至少一些与另一个安全模式中执行的处理活动相关联的信息; 其中处理元件被配置为响应于使分支从第一安全模式中的处理活动转移到第二安全模式中的处理活动的功能调用,以将一个或多个寄存器的内容存储在存储器中 并且响应于分支返回到第一安全模式,从存储器存储器检索寄存器内容; 以及跟踪装置,被配置为生成指示所述处理元件的处理活动的跟踪数据项; 其中所述跟踪装置被配置为检测所述处理元件的分支返回操作并且生成与所述分支返回操作有关的一个或多个跟踪数据项; 并且其中所述跟踪装置被配置为响应于到所述第一安全模式的分支返回而检测所述处理元件从所述存储器存储器检索寄存器内容,并且生成与所述寄存器内容的检索相关的跟踪数据的一个或多个其它项目 从内存存储。