From ae98787c8d718260ecde6345d8468ed96b1a843c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20Linar=C3=A8s?= <61777902+kacouane@users.noreply.github.com> Date: Sat, 19 Oct 2024 02:42:48 +0200 Subject: [PATCH] Update unpriv-cfi.adoc from suggestion (#1690) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit remove redundancy for rd == x0 in def of return Signed-off-by: Antoine Linarès <61777902+kacouane@users.noreply.github.com> --- src/unpriv-cfi.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unpriv-cfi.adoc b/src/unpriv-cfi.adoc index 00b5fcbad..4a164c890 100644 --- a/src/unpriv-cfi.adoc +++ b/src/unpriv-cfi.adoc @@ -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`