Browse Source
Merge pull request #972 from scottj97/fix-hgatp
Fix hgatp CSR write
pull/973/head
Scott Johnson
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
riscv/csrs.cc
|
|
|
@ -978,7 +978,7 @@ bool hgatp_csr_t::unlogged_write(const reg_t val) noexcept { |
|
|
|
proc->supports_impl(IMPL_MMU_VMID) ? HGATP32_VMID : 0; |
|
|
|
} else { |
|
|
|
mask = (HGATP64_PPN & ((reg_t(1) << (MAX_PADDR_BITS - PGSHIFT)) - 1)) | |
|
|
|
proc->supports_impl(IMPL_MMU_VMID) ? HGATP64_VMID : 0; |
|
|
|
(proc->supports_impl(IMPL_MMU_VMID) ? HGATP64_VMID : 0); |
|
|
|
|
|
|
|
if (get_field(val, HGATP64_MODE) == HGATP_MODE_OFF || |
|
|
|
(proc->supports_impl(IMPL_MMU_SV39) && get_field(val, HGATP64_MODE) == HGATP_MODE_SV39X4) || |
|
|
|
|