dont hardcode RA in JALR

This commit is contained in:
Murphy 2024-10-01 18:21:38 -04:00
parent 4c6668f2b6
commit 16ebc059d9
Signed by: freya
GPG key ID: 744AB800E383AE52

View file

@ -304,7 +304,8 @@ MIPS_INS(JAL, .op = MIPS_OP_JAL)
/* JALR - jump and link register */
#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 */
#define MIPS_OP_JALX 0b011101