From b315f0fac78235d799495138b6fa9a1bf35b8a09 Mon Sep 17 00:00:00 2001 From: Tariq Kurd Date: Thu, 25 Jan 2024 10:04:20 +0100 Subject: [PATCH 1/3] remove incorrect text about zero extension --- src/riscv-legacy-integration.adoc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/riscv-legacy-integration.adoc b/src/riscv-legacy-integration.adoc index a484c2b6..9ce4ea09 100644 --- a/src/riscv-legacy-integration.adoc +++ b/src/riscv-legacy-integration.adoc @@ -189,8 +189,9 @@ When the XLEN-bit alias is used by <>: * Only XLEN bits from the *x* source are written to the capability address field. ** The tag and metadata are updated as specified in <>. -* Only XLEN bits are read from the capability address field, which is zero -extended to the destination *x* register. +* Only XLEN bits are read from the capability address field, which are extended +to XLENMAX bits according to cite:[riscv-unpriv-spec] and are then written +to the destination *x* register. When the CLEN-bit alias is used by <>: From c797676e836ee296aed18dda3bb7d32e66a20e67 Mon Sep 17 00:00:00 2001 From: Tariq Kurd <59061376+tariqkurd-repo@users.noreply.github.com> Date: Thu, 25 Jan 2024 13:56:04 +0100 Subject: [PATCH 2/3] Update riscv-legacy-integration.adoc update to correct risc-v spec Signed-off-by: Tariq Kurd <59061376+tariqkurd-repo@users.noreply.github.com> --- src/riscv-legacy-integration.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/riscv-legacy-integration.adoc b/src/riscv-legacy-integration.adoc index 9ce4ea09..94d66cb7 100644 --- a/src/riscv-legacy-integration.adoc +++ b/src/riscv-legacy-integration.adoc @@ -190,7 +190,7 @@ When the XLEN-bit alias is used by <>: field. ** The tag and metadata are updated as specified in <>. * Only XLEN bits are read from the capability address field, which are extended -to XLENMAX bits according to cite:[riscv-unpriv-spec] and are then written +to XLENMAX bits according to cite:[riscv-priv-spec] and are then written to the destination *x* register. When the CLEN-bit alias is used by <>: From 8e81c8e663d323253e5e9c57dc9aac75302fd915 Mon Sep 17 00:00:00 2001 From: Tariq Kurd <59061376+tariqkurd-repo@users.noreply.github.com> Date: Thu, 25 Jan 2024 14:02:13 +0100 Subject: [PATCH 3/3] Update riscv-legacy-integration.adoc ok - I added the reference Signed-off-by: Tariq Kurd <59061376+tariqkurd-repo@users.noreply.github.com> --- src/riscv-legacy-integration.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/riscv-legacy-integration.adoc b/src/riscv-legacy-integration.adoc index 94d66cb7..5e633172 100644 --- a/src/riscv-legacy-integration.adoc +++ b/src/riscv-legacy-integration.adoc @@ -190,8 +190,8 @@ When the XLEN-bit alias is used by <>: field. ** The tag and metadata are updated as specified in <>. * Only XLEN bits are read from the capability address field, which are extended -to XLENMAX bits according to cite:[riscv-priv-spec] and are then written -to the destination *x* register. +to XLENMAX bits according to cite:[riscv-priv-spec] _(3.1.6.2. Base ISA Control in +mstatus Register)_ and are then written to the destination *x* register. When the CLEN-bit alias is used by <>: