最近在做白算盤的習題~
對4.15題的解答感到疑惑@@
題目:
https://i.imgur.com/1c7q6C3.png
解答:
https://i.imgur.com/W0eYkaY.png
4.15.1的題目說"Assume that branch outcomes are determined in the EX stage, that
there are no data hazards, and that no delay slots are used"
我想說是否跳躍既然是在EX stage才決定
那假如預測錯誤的話,不就是要把已經進入IF stage和ID stage的指令flush掉嗎@@
這樣應該是兩個stalls
但解答卻說會造成三個stalls
有點不能理解為什麼是三個stalls > <''