From 7bba0a917f191a438137a42a50dfb9129066f3d7 Mon Sep 17 00:00:00 2001 From: wmat Date: Wed, 3 Apr 2024 12:25:40 -0400 Subject: [PATCH 1/4] Sscofpmf editorial fixes. For the beginning of the descriptions of bits 58 and 59, "If set, ..." should instead be "If set and the H extension is implemented, ...". In the last paragraph, "In M and S modes, ..." should instead say "In S mode, ...". --- src/sscofpmf.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sscofpmf.adoc b/src/sscofpmf.adoc index 8ed09844e..05ae22b6c 100644 --- a/src/sscofpmf.adoc +++ b/src/sscofpmf.adoc @@ -62,9 +62,9 @@ bit [61] +++SINH+++ - If set, then counting of events in S/HS-mode is inhibited bit [60] +++UINH+++ - If set, then counting of events in U-mode is inhibited -bit [59] +++VSINH+++ - If set, then counting of events in VS-mode is inhibited +bit [59] +++VSINH+++ - If set and the H extension is implemented, then counting of events in VS-mode is inhibited -bit [58] +++VUINH+++ - If set, then counting of events in VU-mode is inhibited +bit [58] +++VUINH+++ - If set and the H extension is implemented, then counting of events in VU-mode is inhibited bit [57] 0 - Reserved for possible future modes @@ -183,7 +183,7 @@ M-mode). Read access to bit _X_ is subject to the same mcounteren (or mcounteren and hcounteren) CSRs that mediate access to the hpmcounter CSRs by S-mode (or -VS-mode). In M and S modes, scountovf bit _X_ is readable when mcounteren bit +VS-mode). In S modes, scountovf bit _X_ is readable when mcounteren bit _X_ is set, and otherwise reads as zero. Similarly, in VS mode, scountovf bit _X_ is readable when mcounteren bit _X_ and hcounteren bit _X_ are both set, and otherwise reads as zero. From 10c6a5fc8660f04f1d2490124c7d8695c46ffd4a Mon Sep 17 00:00:00 2001 From: wmat Date: Thu, 4 Apr 2024 10:23:06 -0400 Subject: [PATCH 2/4] Rewording description for bits 58 & 59. Reworded Bits 58 & 59 description to "If set, then counting of events in VU-mode is inhibited. But if the H extension is implemented, then this bit is read-only-zero." --- src/sscofpmf.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sscofpmf.adoc b/src/sscofpmf.adoc index 05ae22b6c..addbff79b 100644 --- a/src/sscofpmf.adoc +++ b/src/sscofpmf.adoc @@ -62,9 +62,9 @@ bit [61] +++SINH+++ - If set, then counting of events in S/HS-mode is inhibited bit [60] +++UINH+++ - If set, then counting of events in U-mode is inhibited -bit [59] +++VSINH+++ - If set and the H extension is implemented, then counting of events in VS-mode is inhibited +bit [59] +++VSINH+++ - If set, then counting of events in VU-mode is inhibited. But if the H extension is implemented, then this bit is read-only-zero. -bit [58] +++VUINH+++ - If set and the H extension is implemented, then counting of events in VU-mode is inhibited +bit [58] +++VUINH+++ - If set, then counting of events in VU-mode is inhibited. But if the H extension is implemented, then this bit is read-only-zero. bit [57] 0 - Reserved for possible future modes From 2fa5b9a6da3cdc687d27a4699e3d3a739949247d Mon Sep 17 00:00:00 2001 From: wmat Date: Thu, 4 Apr 2024 10:31:16 -0400 Subject: [PATCH 3/4] Updated scountovf as described. Updated the text for scountovf. --- src/sscofpmf.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sscofpmf.adoc b/src/sscofpmf.adoc index addbff79b..f335fb6f7 100644 --- a/src/sscofpmf.adoc +++ b/src/sscofpmf.adoc @@ -183,7 +183,7 @@ M-mode). Read access to bit _X_ is subject to the same mcounteren (or mcounteren and hcounteren) CSRs that mediate access to the hpmcounter CSRs by S-mode (or -VS-mode). In S modes, scountovf bit _X_ is readable when mcounteren bit +VS-mode). In M mode, scountovf bit X is always readable, in S/HS modes, scountovf bit _X_ is readable when mcounteren bit _X_ is set, and otherwise reads as zero. Similarly, in VS mode, scountovf bit _X_ is readable when mcounteren bit _X_ and hcounteren bit _X_ are both set, and otherwise reads as zero. From 12837d45aff8ed82dcb7c312aeefa82eb96e3a95 Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Thu, 4 Apr 2024 14:28:01 -0700 Subject: [PATCH 4/4] grammar fix --- src/sscofpmf.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sscofpmf.adoc b/src/sscofpmf.adoc index f335fb6f7..f3eb63a71 100644 --- a/src/sscofpmf.adoc +++ b/src/sscofpmf.adoc @@ -183,7 +183,7 @@ M-mode). Read access to bit _X_ is subject to the same mcounteren (or mcounteren and hcounteren) CSRs that mediate access to the hpmcounter CSRs by S-mode (or -VS-mode). In M mode, scountovf bit X is always readable, in S/HS modes, scountovf bit _X_ is readable when mcounteren bit +VS-mode). In M-mode, scountovf bit _X_ is always readable. In S/HS-mode, scountovf bit _X_ is readable when mcounteren bit _X_ is set, and otherwise reads as zero. Similarly, in VS mode, scountovf bit _X_ is readable when mcounteren bit _X_ and hcounteren bit _X_ are both set, and otherwise reads as zero.