Home
last modified time | relevance | path

Searched refs:mhpmcounter_val (Results 1 – 4 of 4) sorted by relevance

/openbmc/qemu/target/riscv/
H A Dpmu.c126 if (counter->mhpmcounter_val == max_val) { in riscv_pmu_incr_ctr_rv32()
128 counter->mhpmcounter_val = 0; in riscv_pmu_incr_ctr_rv32()
139 counter->mhpmcounter_val++; in riscv_pmu_incr_ctr_rv32()
167 if (counter->mhpmcounter_val == max_val) { in riscv_pmu_incr_ctr_rv64()
168 counter->mhpmcounter_val = 0; in riscv_pmu_incr_ctr_rv64()
175 counter->mhpmcounter_val++; in riscv_pmu_incr_ctr_rv64()
496 ctr_val = counter->mhpmcounter_val; in pmu_timer_trigger_irq()
H A Dmachine.c327 VMSTATE_UINTTL(mhpmcounter_val, PMUCTRState),
H A Dcpu.h177 target_ulong mhpmcounter_val; member
H A Dcsr.c1114 counter->mhpmcounter_val = val; in write_mhpmcounter()
1140 uint64_t mhpmctr_val = counter->mhpmcounter_val; in write_mhpmcounterh()
1167 counter->mhpmcounter_val; in riscv_pmu_read_ctr()
2242 mhpmctr_val = counter->mhpmcounter_val; in write_mcountinhibit()
2252 mhpmctr_val = counter->mhpmcounter_val; in write_mcountinhibit()
2267 counter->mhpmcounter_val = mhpmctr_val; in write_mcountinhibit()