mirror of https://github.com/xemu-project/xemu.git
target/riscv: Set minumum priv spec version for mcountinhibit
The minimum priv spec versino for mcountinhibit to v1.11 so that it is not available for v1.10 (or lower). Fixes: eab4776b2bad ("target/riscv: Add support for hpmcounters/hpmevents") Signed-off-by: Anup Patel <apatel@ventanamicro.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <20220628101737.786681-3-apatel@ventanamicro.com> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
This commit is contained in:
parent
ec2c62dacc
commit
598ca83706
|
@ -3944,7 +3944,7 @@ riscv_csr_operations csr_ops[CSR_TABLE_SIZE] = {
|
|||
write_mhpmcounter },
|
||||
|
||||
[CSR_MCOUNTINHIBIT] = { "mcountinhibit", any, read_mcountinhibit,
|
||||
write_mcountinhibit },
|
||||
write_mcountinhibit, .min_priv_ver = PRIV_VERSION_1_11_0 },
|
||||
|
||||
[CSR_MHPMEVENT3] = { "mhpmevent3", any, read_mhpmevent,
|
||||
write_mhpmevent },
|
||||
|
|
Loading…
Reference in New Issue