Skip to content

Commit ae98787

Browse files
authored
Update unpriv-cfi.adoc from suggestion (riscv#1690)
remove redundancy for rd == x0 in def of return Signed-off-by: Antoine Linarès <[email protected]>
1 parent 2c07aa2 commit ae98787

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/unpriv-cfi.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ register as destination, i.e., `rd != x0`. Conventionally, the link register is
4646
`C.JALR` is termed an _indirect-call_.
4747

4848
The term _return_ is used to refer to a `JALR` instruction with `rd == x0` and
49-
with `rs1 == x1` or `rs1 == x5` and `rd == x0`. A `C.JR` instruction expands to
49+
with `rs1 == x1` or `rs1 == x5`. A `C.JR` instruction expands to
5050
`JALR x0, 0(rs1)` and is a _return_ if `rs1 == x1` or `rs1 == x5`.
5151

5252
The term _indirect-jump_ is used to refer to a `JALR` instruction with `rd == x0`

0 commit comments

Comments
 (0)