]> git.proxmox.com Git - mirror_qemu.git/commit - target/riscv/cpu_helper.c
target/riscv: support cache-related PMU events in virtual mode
authorJim Shu <jim.shu@sifive.com>
Wed, 23 Nov 2022 09:06:29 +0000 (09:06 +0000)
committerAlistair Francis <alistair.francis@wdc.com>
Fri, 6 Jan 2023 00:42:55 +0000 (10:42 +1000)
commiteacd03cb9e51f98c19dc97270c9e4745f441abbe
tree1b2ed69ead1f9439c9fe87758976fbfe7ff6c6aa
parent0c83343ba37151b0edbbc7aa6bea555c58b358cf
target/riscv: support cache-related PMU events in virtual mode

let tlb_fill() function also increments PMU counter when it is from
two-stage translation, so QEMU could also monitor these PMU events when
CPU runs in VS/VU mode (like running guest OS).

Signed-off-by: Jim Shu <jim.shu@sifive.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20221123090635.6574-1-jim.shu@sifive.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
target/riscv/cpu_helper.c