-
公开(公告)号:US20160350116A1
公开(公告)日:2016-12-01
申请号:US14726450
申请日:2015-05-29
Applicant: QUALCOMM Incorporated
Inventor: Vimal Kodandarama REDDY , Niket Kumar CHOUNDHARY , Michael Scott MCILVAINE , Daren Eugene STREETT , Robert Douglas CLANCY , James Norris DIEFFENDERFER , Michael William MORROW
CPC classification number: G06F9/3806 , G06F9/30058 , G06F9/3844
Abstract: Systems and methods for mitigating influence of wrong-path branch instructions in branch prediction include a branch prediction write queue. A first entry of the branch prediction write queue is associated with a first branch instruction based on an order in which the first branch instruction is fetched. Upon speculatively executing the first branch instruction, a correct direction of the first branch instruction is written in the first entry. Prior to committing the first branch instruction, the branch prediction write queue is configured to update one or more branch prediction mechanisms based on the first entry if the first branch instruction was speculatively executed in a correct-path. Updates to the one or more branch prediction mechanisms based on the first entry are prevented if the first branch instruction was speculatively executed in a wrong-path.
Abstract translation: 用于减轻分支预测中错误路径分支指令的影响的系统和方法包括分支预测写入队列。 分支预测写入队列的第一条目基于获取第一分支指令的顺序与第一分支指令相关联。 在推测性地执行第一分支指令时,在第一条目中写入第一分支指令的正确方向。 在提交第一分支指令之前,如果在正确路径中推测性地执行第一分支指令,则分支预测写入队列被配置为基于第一条目来更新一个或多个分支预测机制。 如果在错误路径中推测性地执行第一分支指令,则可以防止基于第一条目对一个或多个分支预测机制的更新。