Browse Source

[sim] cleaned up handling of link register

cs250
Andrew Waterman 16 years ago
parent
commit
53e36319bc
  1. 1
      riscv/decode.h
  2. 2
      riscv/insns/jal.h

1
riscv/decode.h

@ -173,6 +173,7 @@ private:
#define RS1 R[insn.rtype.rs1]
#define RS2 R[insn.rtype.rs2]
#define RD do_writeback(R,insn.rtype.rd)
#define RA do_writeback(R,1)
#define FRS1 FR[insn.ftype.rs1]
#define FRS2 FR[insn.ftype.rs2]
#define FRS3 FR[insn.ftype.rs3]

2
riscv/insns/jal.h

@ -1,2 +1,2 @@
R[1] = npc;
RA = npc;
npc = JUMP_TARGET;

Loading…
Cancel
Save