[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 3/9] target/riscv: add shcounterenw
From: |
Daniel Henrique Barboza |
Subject: |
[PATCH v2 3/9] target/riscv: add shcounterenw |
Date: |
Wed, 18 Dec 2024 08:40:20 -0300 |
shcounterenw is defined in RVA22 as:
"For any hpmcounter that is not read-only zero, the corresponding bit in
hcounteren must be writable."
This is always true in TCG so let's claim support for it.
Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
---
target/riscv/cpu.c | 1 +
tests/data/acpi/riscv64/virt/RHCT | Bin 332 -> 346 bytes
2 files changed, 1 insertion(+)
diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c
index 58bb5196a8..7091eb683e 100644
--- a/target/riscv/cpu.c
+++ b/target/riscv/cpu.c
@@ -183,6 +183,7 @@ const RISCVIsaExtData isa_edata_arr[] = {
ISA_EXT_DATA_ENTRY(zvkt, PRIV_VERSION_1_12_0, ext_zvkt),
ISA_EXT_DATA_ENTRY(zhinx, PRIV_VERSION_1_12_0, ext_zhinx),
ISA_EXT_DATA_ENTRY(zhinxmin, PRIV_VERSION_1_12_0, ext_zhinxmin),
+ ISA_EXT_DATA_ENTRY(shcounterenw, PRIV_VERSION_1_12_0, has_priv_1_12),
ISA_EXT_DATA_ENTRY(smaia, PRIV_VERSION_1_12_0, ext_smaia),
ISA_EXT_DATA_ENTRY(smcntrpmf, PRIV_VERSION_1_12_0, ext_smcntrpmf),
ISA_EXT_DATA_ENTRY(smepmp, PRIV_VERSION_1_12_0, ext_smepmp),
diff --git a/tests/data/acpi/riscv64/virt/RHCT
b/tests/data/acpi/riscv64/virt/RHCT
index
4f231735abad925435c3cd052e6641b1b4187278..460808d017baef93ccdd8fd8d1d4722edefd3b86
100644
GIT binary patch
delta 55
zcmX@Zbc=~A$iq1#ijjeV(RCu10qYM2Muztj?N@PUB<Gjrm82G>=9N!;ZarC%QJKSl
Lk%7UAk%0jK&9M)4
delta 43
zcmcb`bcTs5$iq3rhmnDSk#8cG0qZLUMutZd?N?3wW;xk_QHeu|k%2*nk%0jK|2PU)
--
2.47.1
- [PATCH v2 0/9] target/riscv: add 'sha' support, Daniel Henrique Barboza, 2024/12/18
- [PATCH v2 1/9] target/riscv/tcg: hide warn for named feats when disabling via priv_ver, Daniel Henrique Barboza, 2024/12/18
- [PATCH v2 2/9] target/riscv: add ssstateen, Daniel Henrique Barboza, 2024/12/18
- [PATCH v2 4/9] target/riscv: add shvstvala, Daniel Henrique Barboza, 2024/12/18
- [PATCH v2 3/9] target/riscv: add shcounterenw,
Daniel Henrique Barboza <=
- [PATCH v2 6/9] target/riscv: add shvstvecd, Daniel Henrique Barboza, 2024/12/18
- [PATCH v2 8/9] target/riscv: add shgatpa, Daniel Henrique Barboza, 2024/12/18
- [PATCH v2 9/9] target/riscv/tcg: add sha, Daniel Henrique Barboza, 2024/12/18
- [PATCH v2 5/9] target/riscv: add shtvala, Daniel Henrique Barboza, 2024/12/18
- [PATCH v2 7/9] target/riscv: add shvsatpa, Daniel Henrique Barboza, 2024/12/18