Question: Consider the following instruction sequence executing on a 5 - stage ARM pipeline with static branch prediction and branches are resolved early in the execute

Consider the following instruction sequence executing on a 5-stage ARM pipeline with
static branch prediction and branches are resolved early in the execute stage. The
instruction sequence shown results in control hazards. (Note that the loop counter in R0
is set to 2.) Suppose the CPU uses a static branch prediction policy of predict-always-
untaken. How many cycles are wasted due to control hazards? Assume the program
executes several more non-branch instructions after the label DONE.
a.0
b.2
c.4
d.8
e.12
 Consider the following instruction sequence executing on a 5-stage ARM pipeline

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!