mhpmcounter9h
riscv_unified_db)RV32 / RV64 (Ratified & Standard Extensions)
main
MSmSummary
Upper half of mhpmcounter9.
Syntax / Encoding
CSR 0xb89 (M-mode, RW)
Bitfields (1)
| Bits | Field | Description |
|---|---|---|
31:0 | COUNT | Upper bits of counter. |
Reference Notes
Upper half of mhpmcounter9. The `hpmcounter9h` CSR is a read-only shadow of this CSR. Access to `hpmcounter9h` is controlled with `mcounteren.HPM9` <%- if ext?(:S) -%> , `scounteren.HPM9` <%- if ext?(:H) -%> , and `hcounteren.HPM9` <%- end -%> <%- end -%> as follows: <%- if ext?(:H) -%> [%autowidth,cols="1,1,1,1,1,1,1",separator="!"] !=== .2+h![.rotate]#`mcounteren.HPM9`# .2+h! [.rotate]#`scounteren.HPM9`# .2+h! [.rotate]#`hcounteren.HPM9`# 4+^.>h! `hpmcounter9h` behavior .^h! S-mode .^h! U-mode .^h! VS-mode .^h! VU-mode ! 0 ! - ! - ! `IllegalInstruction` ! `IllegalInstruction` ! `IllegalInstruction` ! `IllegalInstruction` ! 1 ! 0 ! 0 ! read-only ! `IllegalInstruction` ! `VirtualInstruction` ! `VirtualInstruction` ! 1 ! 1 ! 0 ! read-only ! read-only ! `VirtualInstruction` ! `VirtualInstruction` ! 1 ! 0 ! 1 ! read-only ! `IllegalInstruction` ! read-only ! `VirtualInstruction` ! 1 ! 1 ! 1 ! read-only ! read-only ! read-only ! read-only !=== <%- elsif ext?(:S) -%> [%autowidth,cols="1,1,1,1",separator="!"] !=== .2+h![.rotate]#`mcounteren.HPM9`# .2+h! [.rotate]#`scounteren.HPM9`# 2+^.>h! `hpmcounter9h` behavior .^h! S-mode .^h! U-mode ! 0 ! - ! `IllegalInstruction` ! `IllegalInstruction` ! 1 ! 0 ! read-only ! `IllegalInstruction` ! 1 ! 1 ! read-only ! read-only !=== <%- else -%> [%autowidth,cols="1,1",separator="!"] !=== .2+h![.rotate]#`mcounteren.HPM9`# ^.>h! `hpmcounter9h` behavior .^h! U-mode ! 0 ! `IllegalInstruction` ! 1 ! read-only !=== <%- end -%>