发明授权
- 专利标题: Data processing apparatus and method for handling instructions to be executed by processing circuitry
- 专利标题(中): 用于处理由处理电路执行的指令的数据处理装置和方法
-
申请号: US12010305申请日: 2008-01-23
-
公开(公告)号: US07747839B2公开(公告)日: 2010-06-29
- 发明人: Peter Richard Greenhalgh , Andrew Christopher Rose
- 申请人: Peter Richard Greenhalgh , Andrew Christopher Rose
- 申请人地址: GB Cambridge
- 专利权人: ARM Limited
- 当前专利权人: ARM Limited
- 当前专利权人地址: GB Cambridge
- 代理机构: Nixon & Vanderhye P.C.
- 主分类号: G06F9/30
- IPC分类号: G06F9/30
摘要:
A data processing apparatus and method are provided for handling instructions to be executed by processing circuitry. The processing circuitry has a plurality of processor states, each processor state having a different instruction set associated therewith. Pre-decoding circuitry receives the instructions fetched from the memory and performs a pre-decoding operation to generate corresponding pre-decoded instructions, with those pre-decoded instructions then being stored in a cache for access by the processing circuitry. The pre-decoding circuitry performs the pre-decoding operation assuming a speculative processor state, and the cache is arranged to store an indication of the speculative processor state in association with the pre-decoded instructions. The processing circuitry is then arranged only to execute an instruction in the sequence using the corresponding pre-decoded instruction from the cache if a current processor state of the processing circuitry matches the indication of the speculative processor state stored in the cache for that instruction. This provides a simple and effective mechanism for detecting instructions that have been corrupted by the pre-decoding operation due to an incorrect assumption of processor state.
公开/授权文献
信息查询