Ask Your Question
4

What occurs precisely when a Skylake CPU makes an incorrect prediction regarding a branch?

asked 2023-05-02 19:33:22 +0000

lakamha gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-05-02 19:50:02 +0000

scrum gravatar image

When a Skylake CPU makes an incorrect prediction regarding a branch, it causes a pipeline stall. The pipeline is the series of stages that a CPU instruction goes through to be executed, from fetching the instruction from memory to retrieving the necessary data and writing the results back. If the CPU mis-predicts a branch, meaning it predicted the wrong path for the program to follow, the instructions that were fetched in the wrong prediction must be discarded, and the correct instructions need to be fetched, causing a delay or a stall in the pipeline. This can result in a reduction in performance or efficiency.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-02 19:33:22 +0000

Seen: 10 times

Last updated: May 02 '23