发明授权
US07404181B1 Switching to original code comparison of modifiable code for translated code validity when frequency of detecting memory overwrites exceeds threshold
有权
当检测到存储器覆盖的频率超过阈值时,切换到可转换代码有效性的可修改代码的原始代码比较
- 专利标题: Switching to original code comparison of modifiable code for translated code validity when frequency of detecting memory overwrites exceeds threshold
- 专利标题(中): 当检测到存储器覆盖的频率超过阈值时,切换到可转换代码有效性的可修改代码的原始代码比较
-
申请号: US11507779申请日: 2006-08-21
-
公开(公告)号: US07404181B1公开(公告)日: 2008-07-22
- 发明人: John Banning , H. Peter Anvin , Robert Bedichek , Guillermo J. Rozas , Andrew Shaw , Linus Torvalds , Jason Wilson
- 申请人: John Banning , H. Peter Anvin , Robert Bedichek , Guillermo J. Rozas , Andrew Shaw , Linus Torvalds , Jason Wilson
- 申请人地址: US CA Santa Clara
- 专利权人: Transmeta Corporation
- 当前专利权人: Transmeta Corporation
- 当前专利权人地址: US CA Santa Clara
- 主分类号: G06F9/455
- IPC分类号: G06F9/455
摘要:
A method of translating instructions from a target instruction set to a host instruction set. In one embodiment, a plurality of first target instructions is translated into a plurality of first host instructions. After the translation, it is determined whether the plurality of first target instructions has changed. A copy of a second plurality of target instructions is stored and compared with the plurality of first target instructions if the determining slows the operation of the computer system. After comparing, the plurality of first host instructions is invalidated if there is a mismatch. According to one embodiment, the storing, the comparing and the invaliding is initiated when the determining indicates that a page contains at least one change to the plurality of first target instructions. In one embodiment, the determining is by examining a bit indicator associated with a memory location of the plurality of first target instructions.