Detect hazards in the following program. Associate the hazard type with the instruction causing the hazard.
1a. EX/MEM.RegisterRd = ID/EX.RegisterRn1
1b. EX/MEM.RegisterRd = ID/EX.RegisterRm2
2a. MEM/WB.RegisterRd = ID/EX.RegisterRn1
2b. MEM/WB.RegisterRd = ID/EX.RegisterRm2
LDUR X3, [X21, #43]
ADD X4, X3, X2
SUB X6, X8, X7
LSL X5, X1, #3
SUB X18, X9, X5
I have completed this problem Please give thumbs up if you like it
Hazard means : Average execution cycles of program increases due to stalls is known as Hazard
It can be happen due to any type of dependencies between two or more instructions like Data dependency, control Dependency or Structural Dependency which causes Hazards
X3 causes dependency between I2 - I1
And X5 causes dependency between I5 - I4
Get Answers For Free
Most questions answered within 1 hours.