Skip to content

Commit a918259

Browse files
committed
target/riscv: Fix CSR_STVAL2 and CSR_VSTVAL2 handling.
The CSR table entry for CSR_VSTVAL2 is accidentally overwriting the entry for CSR_STVAL2.
1 parent 5a568ef commit a918259

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

target/riscv/csr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4023,7 +4023,7 @@ riscv_csr_operations csr_ops[CSR_TABLE_SIZE] = {
40234023
#ifdef TARGET_CHERI_RISCV_STD_093
40244024
[CSR_STVAL2] = { "stval2", smode, read_stval2, write_stval2,
40254025
.min_priv_ver = PRIV_VERSION_1_12_0 },
4026-
[CSR_STVAL2] = { "vstval2", hmode, read_vstval2, write_vstval2,
4026+
[CSR_VSTVAL2] = { "vstval2", hmode, read_vstval2, write_vstval2,
40274027
.min_priv_ver = PRIV_VERSION_1_12_0 },
40284028
#endif
40294029

0 commit comments

Comments
 (0)