News for hackers. Stuff that matters.
Re:CPU branch prediction evolution over years by coder543 on Saturday December 31, 2022 @09:39PM (#34203035)
The results for partially-executed instructions aren't "committed" yet, so the pipeline is flushed / thrown away, and execution starts again with an empty pipeline at the corrected address. IIRC, each stage of a pipeline has its own registers. The registers your code knows about would not have been updated until the end of the pipeline, but that branch instruction is ahead of the speculative execution, so none of the speculative results would be stored before the mistake is identified.

There are no comments on this comment yet.