- 专利标题: Data processing apparatus and method for handling instructions to be executed by processing circuitry
-
申请号: US12010305申请日: 2008-01-23
-
公开(公告)号: US20090187741A1公开(公告)日: 2009-07-23
- 发明人: Peter Richard Greenhalgh , Andrew Christopher Rose
- 申请人: Peter Richard Greenhalgh , Andrew Christopher Rose
- 申请人地址: GB Cambridge
- 专利权人: ARM. LIMITED
- 当前专利权人: ARM. LIMITED
- 当前专利权人地址: GB Cambridge
- 主分类号: 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.
公开/授权文献
信息查询