-
公开(公告)号:US08612731B2
公开(公告)日:2013-12-17
申请号:US12614085
申请日:2009-11-06
申请人: Carlos Cavanna , Reid Copeland , Chad McIntyre , Ali Sheikh
发明人: Carlos Cavanna , Reid Copeland , Chad McIntyre , Ali Sheikh
IPC分类号: G06F9/00
CPC分类号: G06F9/3806 , G06F9/30058 , G06F9/3848 , G06F9/455 , G06F12/0875 , G06F2212/452
摘要: Branch instructions are managed in an emulation environment that is executing a program. A plurality of entries is populated in a branch target buffer that resides within an emulated environment in which the program is executing. Each of the entries comprises an instruction address and a target address of a branch instruction of the program. When an indirect branch instruction of the program is encountered a processor analyzes one of the entries in the branch target buffer to determine if the instruction address of the one entry is associated with a target address of the indirect branch instruction. If the instruction address of the one entry is associated with the target address of the indirect branch instruction a branch to the target address of the one entry is performed.
摘要翻译: 分支指令在正在执行程序的仿真环境中进行管理。 多个条目填充在驻留在程序正在执行的仿真环境中的分支目标缓冲器中。 每个条目包括程序的分支指令的指令地址和目标地址。 当遇到程序的间接分支指令时,处理器分析转移目标缓冲器中的一个条目以确定该条目的指令地址是否与间接分支指令的目标地址相关联。 如果一个条目的指令地址与间接分支指令的目标地址相关联,则执行到该条目的目标地址的分支。