diff options
author | Xu, Zefan <ceba_robot@outlook.com> | 2024-05-22 17:10:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-22 02:10:56 -0700 |
commit | c23436492c27d89fe6d4b6f6b61762d83376c1fa (patch) | |
tree | 79163b82dc752e22548a0f93ece401d273c193e1 | |
parent | 4b6a761a2fb9b6d8b14b22ea13b990ca26c44ea8 (diff) | |
download | riscv-isa-manual-c23436492c27d89fe6d4b6f6b61762d83376c1fa.zip riscv-isa-manual-c23436492c27d89fe6d4b6f6b61762d83376c1fa.tar.gz riscv-isa-manual-c23436492c27d89fe6d4b6f6b61762d83376c1fa.tar.bz2 |
Clarify the behavior of mcountinhibit CSR (#1422)
Use mcycle, minstret, mhpmcountern to replace cycle, instret, hpmcountern in mcountinhibit spec. This will not changing any meaning because of "read-only shadow".
-rw-r--r-- | src/machine.adoc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/machine.adoc b/src/machine.adoc index c3f304a..d13fd4f 100644 --- a/src/machine.adoc +++ b/src/machine.adoc @@ -1592,7 +1592,7 @@ counters increment; their accessibility is not affected by the setting of this register. When the CY, IR, or HPM__n__ bit in the `mcountinhibit` register is clear, -the `cycle`, `instret`, or `hpmcountern` register increments as usual. +the `mcycle`, `minstret`, or `mhpmcountern` register increments as usual. When the CY, IR, or HPM_n_ bit is set, the corresponding counter does not increment. @@ -1605,12 +1605,12 @@ behaves as though the register were set to zero. [NOTE] ==== -When the `cycle` and `instret` counters are not needed, it is desirable +When the `mcycle` and `minstret` counters are not needed, it is desirable to conditionally inhibit them to reduce energy consumption. Providing a single CSR to inhibit all counters also allows the counters to be atomically sampled. -Because the `time` counter can be shared between multiple cores, it +Because the `mtime` counter can be shared between multiple cores, it cannot be inhibited with the `mcountinhibit` mechanism. ==== |