You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that jal istruction does not perform writeback to $ra register.
The text was updated successfully, but these errors were encountered:
pavelkryukov
added
1
Usually one-liner tasks, but may require some deep into infrastructure.
bug
Fixes a bug or potential bug in simulation.
labels
Apr 11, 2017
The solution seems to be straightforward: I just have to add dst setting into initR and initJ:
dst = REG_NUM_RA
The problem is that it shouldn't be done for j and jr instructions, only for jal and jalr. So I have to discriminate them somehow. But now initJ, initR, initI are discriminating instructions only by operation type without looking at funct or opcode. So I had better add new operation type like
pavelkryukov
added
0
This task has the owner who does not participate in scoring system.
and removed
1
Usually one-liner tasks, but may require some deep into infrastructure.
labels
Oct 2, 2017
Currently factorial fails on instruction 62:
The problem is that
jal
istruction does not perform writeback to $ra register.The text was updated successfully, but these errors were encountered: