qemu/hw/riscv
Tomasz Jeznach 4faea7e084 hw/riscv/riscv-iommu: add riscv-iommu-hpm file
The HPM (Hardware Performance Monitor) support consists of almost 7
hundred lines that would be put on top of the base riscv-iommu
emulation.

To avoid clogging riscv-iommu.c, add a separated riscv-iommu-hpm file
that will contain HPM specific code.

We'll start by adding riscv_iommu_hpmcycle_read(), a helper that will be
called during the riscv_iommu_mmio_read() callback.

This change will have no effect on the existing emulation since we're
not declaring HPM feature support.

Signed-off-by: Tomasz Jeznach <tjeznach@rivosinc.com>
Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Acked-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20250224190826.1858473-4-dbarboza@ventanamicro.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2025-03-04 15:42:54 +10:00
..
boot.c hw: Centralize handling of -machine dumpdtb option 2025-02-24 15:03:42 +00:00
Kconfig hw/riscv: Add Microblaze V generic board 2024-12-20 11:22:47 +10:00
meson.build hw/riscv/riscv-iommu: add riscv-iommu-hpm file 2025-03-04 15:42:54 +10:00
microblaze-v-generic.c hw/char/xilinx_uartlite: Make device endianness configurable 2025-02-16 14:34:51 +01:00
microchip_pfsoc.c hw/boards: Rename no_sdcard -> auto_create_sdcard 2025-02-16 14:25:08 +01:00
numa.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
opentitan.c hw/riscv/opentitan: Include missing 'exec/address-spaces.h' header 2025-02-16 14:25:08 +01:00
riscv-iommu-bits.h hw/riscv/riscv-iommu-bits.h: HPM bits 2025-03-04 15:42:54 +10:00
riscv-iommu-hpm.c hw/riscv/riscv-iommu: add riscv-iommu-hpm file 2025-03-04 15:42:54 +10:00
riscv-iommu-hpm.h hw/riscv/riscv-iommu: add riscv-iommu-hpm file 2025-03-04 15:42:54 +10:00
riscv-iommu-pci.c RISC-V PR for 10.0 2024-12-21 08:13:16 -05:00
riscv-iommu-sys.c hw/riscv/riscv-iommu-sys.c: fix duplicated 'table_size' 2024-12-28 14:42:53 +03:00
riscv-iommu.c hw/riscv/riscv-iommu: add riscv-iommu-hpm file 2025-03-04 15:42:54 +10:00
riscv-iommu.h hw/riscv/riscv-iommu: add riscv-iommu-hpm file 2025-03-04 15:42:54 +10:00
riscv_hart.c tests/qtest: rename qtest_send_prefix and roll-up into qtest_send 2025-02-10 13:47:58 +00:00
shakti_c.c hw/riscv: Remove all invalid uses of auto_create_sdcard=true 2025-02-16 14:25:08 +01:00
sifive_e.c hw/riscv: Remove all invalid uses of auto_create_sdcard=true 2025-02-16 14:25:08 +01:00
sifive_u.c hw/boards: Rename no_sdcard -> auto_create_sdcard 2025-02-16 14:25:08 +01:00
spike.c hw/riscv: Remove all invalid uses of auto_create_sdcard=true 2025-02-16 14:25:08 +01:00
trace-events hw/riscv/riscv-iommu: implement reset protocol 2024-12-20 11:22:46 +10:00
trace.h hw/riscv: add RISC-V IOMMU base emulation 2024-10-31 13:51:24 +10:00
virt-acpi-build.c Accel & Exec patch queue 2024-12-21 11:07:00 -05:00
virt.c hw/riscv/virt: Add serial alias in DTB 2025-03-04 15:42:54 +10:00