作者VB2005 (DaiJouBu)
看板Grad-ProbAsk
標題[理工] [計組]尋找hazard
時間Thu Dec 27 13:14:17 2012
題目:
1 sll $t1,$s1,2 (1) if this mips cpu has no forwarding
2 add $t1,$s2,$t1 capacity , please indicate all harard
3 lw $s3,100($t1) and add nop instructions to eliminate
4 addi $s3,$s3,1 them.
5 add $zero,$s4,$s3
6 slt $t2,$s3,zero
7 bne $t2,zero,L2
題問:
解答在bne後面插了一個nop why?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 122.118.254.72
→ cutemiller:因為假設 bne 後面還有指令 12/27 23:05
→ VB2005:SOGA 謝謝 12/29 00:05