← Home

mhpmcounter12h

Machine Hardware Performance Counter 12, Upper half

Address: 0xB8C (2956) · Privilege: M · Length: 32 · Writable · Defined by: Sm and RV32 · Indirect address: 76 · Indirect slot: 4

Upper half of mhpmcounter12.

The `hpmcounter12h` CSR is a read-only shadow of this CSR. Access to `hpmcounter12h` is controlled with `mcounteren.HPM12`

, `scounteren.HPM12`

, and `hcounteren.HPM12`

as follows:

.2+h![.rotate]#`mcounteren.HPM12`# .2+h! [.rotate]#`scounteren.HPM12`# .2+h! [.rotate]#`hcounteren.HPM12`# 4+^.>h! `hpmcounter12h` 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

.2+h![.rotate]#`mcounteren.HPM12`# .2+h! [.rotate]#`scounteren.HPM12`# 2+^.>h! `hpmcounter12h` behavior .^h! S-mode .^h! U-mode

! 0 ! - ! `IllegalInstruction` ! `IllegalInstruction` ! 1 ! 0 ! read-only ! `IllegalInstruction` ! 1 ! 1 ! read-only ! read-only

.2+h![.rotate]#`mcounteren.HPM12`# ^.>h! `hpmcounter12h` behavior .^h! U-mode

! 0 ! `IllegalInstruction` ! 1 ! read-only

Fields

31:2423:1615:87:0
COUNT
BitsFieldAliasDescriptionTypeReset
[31:0]COUNTmhpmcounter12.COUNT[63:32]Upper bits of counter.
return (HPM_COUNTER_EN[12]) ? CsrFieldType::RWH : CsrFieldType::RO;
return (HPM_COUNTER_EN[12]) ? UNDEFINED_LEGAL : 0;

Software read

if (HPM_COUNTER_EN[12]) {
  return read_hpm_counter(12)[63:32];
} else {
  return 0;
}

Version af3eaf9+cheriot.f635218

Data from the RISC-V Unified Database, copyright RISC-V International and contributors.

CHERIoT extensions from the CHERIoT specification and Sail model, copyright Microsoft and the CHERIoT Platform contributors.

This site is provided as a community resource and is NOT affiliated with nor endorsed by RISC-V International.