summary refs log tree commit diff stats
path: root/hw/riscv/riscv-iommu-hpm.h
diff options
context:
space:
mode:
authorTomasz Jeznach <tjeznach@rivosinc.com>2025-02-24 16:08:20 -0300
committerAlistair Francis <alistair.francis@wdc.com>2025-03-04 15:42:54 +1000
commitffb37df056490b34cecc7958bf5f83fe5497b2d4 (patch)
treeb0feb2ce68a5eccaef9dca2f87d41e0b4d5a6591 /hw/riscv/riscv-iommu-hpm.h
parent11ecf24c7eda83bb92e24a81425ac6d33a63378e (diff)
downloadfocaccia-qemu-ffb37df056490b34cecc7958bf5f83fe5497b2d4.tar.gz
focaccia-qemu-ffb37df056490b34cecc7958bf5f83fe5497b2d4.zip
hw/riscv/riscv-iommu: instantiate hpm_timer
The next HPM related changes requires the HPM overflow timer to be
initialized by the riscv-iommu base emulation.

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-6-dbarboza@ventanamicro.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'hw/riscv/riscv-iommu-hpm.h')
-rw-r--r--hw/riscv/riscv-iommu-hpm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/riscv/riscv-iommu-hpm.h b/hw/riscv/riscv-iommu-hpm.h
index 411d869dce..cd896d3b7c 100644
--- a/hw/riscv/riscv-iommu-hpm.h
+++ b/hw/riscv/riscv-iommu-hpm.h
@@ -25,5 +25,6 @@
 uint64_t riscv_iommu_hpmcycle_read(RISCVIOMMUState *s);
 void riscv_iommu_hpm_incr_ctr(RISCVIOMMUState *s, RISCVIOMMUContext *ctx,
                               unsigned event_id);
+void riscv_iommu_hpm_timer_cb(void *priv);
 
 #endif