doc: RVZicntr extension can be not supported (#2699)

counters.adoc: condition around Zicntr text
This commit is contained in:
André Sintzoff 2025-01-09 14:38:49 +01:00 committed by GitHub
parent 837b204753
commit 1c6b89df5b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,6 +9,7 @@ divided between the "Zicntr" and "Zihpm" extensions.
=== "Zicntr" Extension for Base Counters and Timers
ifeval::[{RVZicntr} == true]
The Zicntr standard extension comprises the first three of these
counters (CYCLE, TIME, and INSTRET), which have dedicated functions
(cycle count, real-time clock, and instructions retired, respectively).
@ -171,6 +172,11 @@ reading its upper and lower halves.
rdcycle x2
rdcycleh x4
bne x3, x4, again
endif::[]
ifeval::[{RVZicntr} == false]
{ohg-config}: This extension is not supported.
endif::[]
=== "Zihpm" Extension for Hardware Performance Counters