Hi,

On 2026-11-12 10:49, TANG Tiancheng wrote:

TCG tests cover RV32/RV64 counter accesses, delegated registers, selector
and filter changes, multiple counters per event, overflow notification
with and without Sscofpmf, instruction exceptions, and reset. The RV32
HPM tests also cover full-width accesses through the shared counter path.


---
TANG Tiancheng (14):
       target/riscv: Preserve PMU state across event selector writes
       target/riscv: Support multiple counters per PMU event
       target/riscv: Use VM-elapsed sources for fixed PMU events
       target/riscv: Preserve MINH on delegated config reads
       target/riscv: Preserve minstretcfgh on RV32 minstretcfg writes
       target/riscv: Fix RV32 accesses to delegated PMU registers
       target/riscv: Preserve fixed counters across PMU state changes
       target/riscv: Require Sscofpmf for non-fixed event overflow
       target/riscv: Rebuild fixed-event PMU overflow deadlines
       target/riscv: Apply minstret exception accounting to HPM counters
       target/riscv: Process PMU timer expiry on the owner vCPU
       target/riscv: Migrate fixed PMU counter state
       target/riscv: Clear virtualization mode on reset
       target/riscv: Preserve fixed PMU state across reset
  tests/tcg/riscv32/pmu-fixed-rv32.S          |  90 ++++
  tests/tcg/riscv32/pmu-minstretcfg-rv32.S    |  52 ++
  tests/tcg/riscv32/smcdeleg-minh-rv32.S      |  78 +++
  tests/tcg/riscv32/smcdeleg-rv32.S           | 115 ++++
  tests/tcg/riscv32/sscofpmf-event-rv32.S     |  99 ++++
  tests/tcg/riscv32/system/meson.build        |  35 ++
  tests/tcg/riscv64/pmu-cycle-controls.S      | 107 ++++
  tests/tcg/riscv64/pmu-lpad.S                |  72 +++
  tests/tcg/riscv64/pmu-reset-vs.S            | 105 ++++
  tests/tcg/riscv64/smcdeleg-minh.S           |  78 +++
  tests/tcg/riscv64/smcdeleg-sxl32.S          | 233 ++++++++
  tests/tcg/riscv64/sscofpmf-cycle-overflow.S |  58 ++
  tests/tcg/riscv64/sscofpmf-event-overflow.S | 103 ++++
  tests/tcg/riscv64/sscofpmf-overflow.S       | 134 +++++
  tests/tcg/riscv64/system/meson.build        |  88 +++
  tests/tcg/riscv64/test-minstret-ecall.S     |  26 +
Do the tests need the 'AI-used-for: Regression tests' mention?

Reply via email to