Question: [5] The following MIPS code may incur pipeline bubbles for load-use data hazard and control hazard. Assume that the MIPS pipeline resolves branch in the
[5] The following MIPS code may incur pipeline bubbles for load-use data hazard and control hazard. Assume that the MIPS pipeline resolves branch in the ID stage, and it also supports delayed branch. Rewrite the code to remove all pipeline bubbles (including potential one from taken branch). c. add $tl, $s0, $t0 lw $t2, 4 (a0) mul $t3, $tl, $t2 SW addi $s0, ?s0, 1 beq $so, $sl, exit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
