考慮下列指令序列。假設這些指令在一個具有五個stages的pipeline datapath上執行。
or x10, x3, x4 ld x5, 8(x10) ld x4, 0(x2) add x5, x10, x5 sd x5, 4(x10)
假設處理器沒有實作hazard detection也沒有forwarding。為了確保執行結果正確,需要加入多少個NOP指令?