summaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorGravatar Andrew Waterman <waterman@cs.berkeley.edu>2013-07-31 16:00:53 -0700
committerGravatar Andrew Waterman <waterman@cs.berkeley.edu>2013-07-31 16:00:53 -0700
commit157d7aafa998a05f76d33d542388e1e789bf0557 (patch)
tree80517acf54379ef91b6175dafbb0b49d96f1f12f /opcodes
parent3b6b4ab18c45c8f8e007b46cc15c5c6cc8cc4dc3 (diff)
Swap J and JALR encodings
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes4
1 files changed, 2 insertions, 2 deletions
diff --git a/opcodes b/opcodes
index 2699902..f5ba9f4 100644
--- a/opcodes
+++ b/opcodes
@@ -7,10 +7,10 @@
# <args> is one of rd, rs1, rs2, rs3, imm25, imm20, imm12, imm12lo, imm12hi,
# shamtw, shamt, rm
-j imm25 6..2=0x19 1..0=3
+j imm25 6..2=0x1A 1..0=3
jal imm25 6..2=0x1B 1..0=3
-jalr rd rs1 imm12 9..7=0 6..2=0x1A 1..0=3
+jalr rd rs1 imm12 9..7=0 6..2=0x19 1..0=3
beq imm12hi rs1 rs2 imm12lo 9..7=0 6..2=0x18 1..0=3
bne imm12hi rs1 rs2 imm12lo 9..7=1 6..2=0x18 1..0=3