dont hardcode RA in JALR
This commit is contained in:
parent
4c6668f2b6
commit
16ebc059d9
1 changed files with 2 additions and 1 deletions
|
@ -304,7 +304,8 @@ MIPS_INS(JAL, .op = MIPS_OP_JAL)
|
||||||
|
|
||||||
/* JALR - jump and link register */
|
/* JALR - jump and link register */
|
||||||
#define MIPS_FUNCT_JALR 0b001001
|
#define MIPS_FUNCT_JALR 0b001001
|
||||||
MIPS_INS(JALR, .op = MIPS_OP_SPECIAL, .funct = MIPS_FUNCT_JALR)
|
MIPS_INS(JALR, .rd = MIPS_REG_RA, .op = MIPS_OP_SPECIAL,
|
||||||
|
.funct = MIPS_FUNCT_JALR)
|
||||||
|
|
||||||
/* JALX - jump and link exchange */
|
/* JALX - jump and link exchange */
|
||||||
#define MIPS_OP_JALX 0b011101
|
#define MIPS_OP_JALX 0b011101
|
||||||
|
|
Loading…
Reference in a new issue