Skip to content

Commit 80a3c81

Browse files
committed
Update writable mask for misa of XiangShan
1 parent c8036d7 commit 80a3c81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

riscv/csrs.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ misa_csr_t::misa_csr_t(processor_t* const proc, const reg_t addr, const reg_t ma
656656
| (1L << ('C' - 'A'))
657657
| (1L << ('V' - 'A'))
658658
)
659-
#elif defined(CPU_NUTSHELL)
659+
#elif defined(CPU_NUTSHELL) || defined (CPU_XIANGSHAN)
660660
write_mask(0 // not allowed
661661
#else
662662
write_mask(max_isa & (0 // allow MAFDQCHV bits in MISA to be modified

0 commit comments

Comments
 (0)