Question: The following table contains MIPS assembly code for a lock. Refer to the definition of the ll and sc pairs of MIPS instructions. For each
The following table contains MIPS assembly code for a lock. Refer to the definition of the ll and sc pairs of MIPS instructions.
For each test and fail of the store conditional, how many instructions need to be executed?
a. try: MOV LL ADDI SC BEQZ MOV R3, R4 R2,0 (R2) R2, R2, 1 R3,0 (R1) R3,try R4, R2
Step by Step Solution
3.47 Rating (160 Votes )
There are 3 Steps involved in it
For each test and fail of the store conditional 4 instructio... View full answer
Get step-by-step solutions from verified subject matter experts
