We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1aca063 + b81d108 commit a61cbf2Copy full SHA for a61cbf2
arch/inst/I/jalr.yaml
@@ -6,7 +6,9 @@ name: jalr
6
long_name: Jump and link register
7
description: |
8
Jump to an address formed by adding rs1
9
- to a signed offset, and store the return address in rd.
+ to a signed offset then clearing the least
10
+ significant bit, and store the return address
11
+ in rd.
12
definedBy: I
13
assembly: xd, imm(rs1)
14
encoding:
@@ -27,7 +29,7 @@ operation(): |
27
29
XReg returnaddr;
28
30
returnaddr = $pc + 4;
31
- jump(X[rs1] + imm);
32
+ jump((X[rs1] + imm) & ~XLEN'1);
33
X[rd] = returnaddr;
34
35
sail(): |
0 commit comments