System and method for dynamically replacing code
    3.
    发明授权
    System and method for dynamically replacing code 有权
    用于动态替换代码的系统和方法

    公开(公告)号:US06915513B2

    公开(公告)日:2005-07-05

    申请号:US09997062

    申请日:2001-11-29

    IPC分类号: G06F9/445 G06F9/44

    CPC分类号: G06F8/656

    摘要: The present disclosure relates to a system and method for dynamically replacing code. In one arrangement, the system and method pertain to intercepting original program instructions during execution of the program, determining if an original program instruction is to be replaced, and dynamically replacing the program instruction with a replacement instruction if it is determined that the original program instruction is to be replaced.

    摘要翻译: 本公开涉及用于动态替换代码的系统和方法。 在一种布置中,系统和方法涉及在执行程序期间拦截原始程序指令,确定是否要替换原始程序指令,如果确定原始程序指令,则用替换指令动态地替换程序指令 被替换

    Dynamic execution layer interface for replacing instructions requiring unavailable hardware functionality with patch code and caching

    公开(公告)号:US06928536B2

    公开(公告)日:2005-08-09

    申请号:US09995775

    申请日:2001-11-29

    IPC分类号: G06F9/318 G06F9/445 G06F9/455

    摘要: A system and method for dynamically patching code. In one embodiment, a method includes intercepting original program instructions during execution of the program using a software interface, determining whether associated instructions have been cached in a code cache of the software interface and, if so, executing the cached instructions from the code cache, if associated instructions have not been cached, determining if the original program instructions require unavailable hardware functionality, and dynamically replacing the original program instructions with replacement instructions that do not require unavailable hardware functionality if it is determined that the original program instructions require unavailable hardware functionality, the dynamic replacing including fetching replacing instructions, storing the replacement instructions in the code cache, and executing the replacement instructions from the code cache.

    摘要翻译: 一种用于动态修补代码的系统和方法。 在一个实施例中,一种方法包括在使用软件接口执行程序期间拦截原始程序指令,确定相关联的指令是否已被缓存在软件接口的代码高速缓存中,并且如果是,则从代码缓存执行缓存的指令, 如果相关联的指令未被缓存,则确定原始程序指令是否需要不可用的硬件功能,并且如果确定原始程序指令需要不可用的硬件功能,则用替换指令动态地替换原始程序指令,替换指令不需要不可用的硬件功能, 动态替换,包括取代替换指令,将替换指令存储在代码高速缓存中,以及从代码缓存执行替换指令。