[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH for-10.0 4/9] target/riscv: add shvstvala
From: |
Daniel Henrique Barboza |
Subject: |
[PATCH for-10.0 4/9] target/riscv: add shvstvala |
Date: |
Wed, 13 Nov 2024 14:17:50 -0300 |
shvstvala is defined in RVA22 as:
"vstval must be written in all cases described above for stval."
By "cases describe above" the doc refer to the description of sstvala:
"stval must be written with the faulting virtual address for load,
store, and instruction page-fault, access-fault, and misaligned
exceptions, and for breakpoint exceptions other than those caused by
execution of the EBREAK or C.EBREAK instructions. For
virtual-instruction and illegal-instruction exceptions, stval must be
written with the faulting instruction."
We already have sstvala, and our vstval follows the same rules as stval,
so we can claim to support shvstvala too.
Signed-off-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
---
target/riscv/cpu.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c
index 6bfb1b1530..11a0d2d04a 100644
--- a/target/riscv/cpu.c
+++ b/target/riscv/cpu.c
@@ -184,6 +184,7 @@ const RISCVIsaExtData isa_edata_arr[] = {
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(shvstvala, 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),
--
2.47.0
- [PATCH for-10.0 0/9] target/riscv: add 'sha' support, Daniel Henrique Barboza, 2024/11/13
- [PATCH for-10.0 1/9] target/riscv/tcg: hide warn for named feats when disabling via priv_ver, Daniel Henrique Barboza, 2024/11/13
- [PATCH for-10.0 2/9] target/riscv: add ssstateen, Daniel Henrique Barboza, 2024/11/13
- [PATCH for-10.0 3/9] target/riscv: add shcounterenw, Daniel Henrique Barboza, 2024/11/13
- [PATCH for-10.0 4/9] target/riscv: add shvstvala,
Daniel Henrique Barboza <=
- [PATCH for-10.0 5/9] target/riscv: add shtvala, Daniel Henrique Barboza, 2024/11/13
- [PATCH for-10.0 6/9] target/riscv: add shvstvecd, Daniel Henrique Barboza, 2024/11/13
- [PATCH for-10.0 7/9] target/riscv: add shvsatpa, Daniel Henrique Barboza, 2024/11/13
- [PATCH for-10.0 9/9] target/riscv/tcg: add sha, Daniel Henrique Barboza, 2024/11/13
- [PATCH for-10.0 8/9] target/riscv: add shgatpa, Daniel Henrique Barboza, 2024/11/13