Home
last modified time | relevance | path

Searched refs:pmu_mask (Results 1 – 5 of 5) sorted by relevance

/openbmc/qemu/target/riscv/
H A Dpmu.c282 if (!cpu->cfg.pmu_mask) { in riscv_pmu_incr_ctr()
585 if (cpu->cfg.pmu_mask & (COUNTEREN_CY | COUNTEREN_TM | COUNTEREN_IR)) { in riscv_pmu_init()
590 if (ctpop32(cpu->cfg.pmu_mask) > (RV_MAX_MHPMCOUNTERS - 3)) { in riscv_pmu_init()
601 cpu->pmu_avail_ctrs = cpu->cfg.pmu_mask; in riscv_pmu_init()
H A Dcpu.c1350 cpu->cfg.pmu_mask = MAKE_64BIT_MASK(3, 16); in riscv_cpu_init()
1641 uint32_t pmu_mask; in prop_pmu_num_set() local
1645 curr_pmu_num = ctpop32(cpu->cfg.pmu_mask); in prop_pmu_num_set()
1660 pmu_mask = 0; in prop_pmu_num_set()
1662 pmu_mask = MAKE_64BIT_MASK(3, pmu_num); in prop_pmu_num_set()
1666 cpu->cfg.pmu_mask = pmu_mask; in prop_pmu_num_set()
1674 uint8_t pmu_num = ctpop32(cpu->cfg.pmu_mask); in prop_pmu_num_get()
1697 name, cpu->cfg.pmu_mask); in prop_pmu_mask_set()
1709 cpu->cfg.pmu_mask = value; in prop_pmu_mask_set()
1715 uint8_t pmu_mask = RISCV_CPU(obj)->cfg.pmu_mask; in prop_pmu_mask_get() local
[all …]
H A Dcpu_cfg.h162 uint32_t pmu_mask; member
H A Dmachine.c318 return (cpu->cfg.pmu_mask > 0); in pmu_needed()
/openbmc/qemu/target/riscv/tcg/
H A Dtcg-cpu.c622 cpu->cfg.pmu_mask = 0; in riscv_cpu_validate_set_extensions()
956 if (cpu->cfg.pmu_mask) { in riscv_tcg_cpu_realize()