Question: 7. A PShare predictor has 16 PHT entries and 4 BHT entries. Each PHT entry has two bits. Each BHT entry has a 2BC that
7. A PShare predictor has 16 PHT entries and 4 BHT entries. Each PHT entry has two bits. Each BHT entry has a 2BC that is initialized to SN. Assume the associated BTB gives perfect prediction for the target. The PShare predictor is accessed and updated only by branch instructions. The processor completes all the steps required to process an instruction in one step, including updating the predictor. Give the number of mispredictions for each branch instruction for the code from problem 7. Also, give the final state of the PHT and the BHT. (15)

add $to, $s0, $0 add $t0, $t0, 20 outterLoop: add $a0, $s0, $0 add $t1, $0, $
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
