Browse Source
Merge pull request #1887 from fly-1011/fix-hvip-lcofi
Fix LCOFI bit implementation in hvip register
pull/1546/head
Andrew Waterman
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
2 deletions
-
riscv/csrs.cc
|
|
|
@ -1836,8 +1836,7 @@ reg_t hvip_csr_t::read() const noexcept { |
|
|
|
|
|
|
|
bool hvip_csr_t::unlogged_write(const reg_t val) noexcept { |
|
|
|
state->mip->write_with_mask(MIP_VSSIP, val); // hvip.VSSIP is an alias of mip.VSSIP
|
|
|
|
const reg_t lscof_int = proc->extension_enabled(EXT_SSCOFPMF) ? MIP_LCOFIP : 0; |
|
|
|
return basic_csr_t::unlogged_write(val & (lscof_int | MIP_VSEIP | MIP_VSTIP)); |
|
|
|
return basic_csr_t::unlogged_write(val & (MIP_VSEIP | MIP_VSTIP)); |
|
|
|
} |
|
|
|
|
|
|
|
ssp_csr_t::ssp_csr_t(processor_t* const proc, const reg_t addr, const reg_t mask, const reg_t init): |
|
|
|
|