Skip to content

Commit 34195bb

Browse files
committed
Fix LCOFI bit implementation in hvip register
1 parent b81b5a0 commit 34195bb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

riscv/csrs.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1836,8 +1836,7 @@ reg_t hvip_csr_t::read() const noexcept {
18361836

18371837
bool hvip_csr_t::unlogged_write(const reg_t val) noexcept {
18381838
state->mip->write_with_mask(MIP_VSSIP, val); // hvip.VSSIP is an alias of mip.VSSIP
1839-
const reg_t lscof_int = proc->extension_enabled(EXT_SSCOFPMF) ? MIP_LCOFIP : 0;
1840-
return basic_csr_t::unlogged_write(val & (lscof_int | MIP_VSEIP | MIP_VSTIP));
1839+
return basic_csr_t::unlogged_write(val & (MIP_VSEIP | MIP_VSTIP));
18411840
}
18421841

18431842
ssp_csr_t::ssp_csr_t(processor_t* const proc, const reg_t addr, const reg_t mask, const reg_t init):

0 commit comments

Comments
 (0)