Skip to content

Commit

Permalink
Update unpriv-cfi.adoc from suggestion (#1690)
Browse files Browse the repository at this point in the history
remove redundancy for rd == x0 in def of return

Signed-off-by: Antoine Linarès <[email protected]>
  • Loading branch information
kacouane authored Oct 19, 2024
1 parent 2c07aa2 commit ae98787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unpriv-cfi.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ register as destination, i.e., `rd != x0`. Conventionally, the link register is
`C.JALR` is termed an _indirect-call_.

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

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

0 comments on commit ae98787

Please sign in to comment.