Skip to content

Commit

Permalink
Merge pull request #158 from ChinYikMing/fix/typo
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
LekKit authored Oct 26, 2024
2 parents 419e179 + 35dee20 commit a47dd91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/riscv_csr.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ static inline bool riscv_csr_stimecmph(rvvm_hart_t* vm, maxlen_t* dest, uint8_t
static bool riscv_csr_satp(rvvm_hart_t* vm, maxlen_t* dest, uint8_t op)
{
uint8_t prev_mmu = vm->mmu_mode;
if (vm->csr.status & CSR_STATUS_TVM) return false; // TVM should trap on acces to satp
if (vm->csr.status & CSR_STATUS_TVM) return false; // TVM should trap on access to satp
if (vm->rv64) {
maxlen_t satp = (((uint64_t)vm->mmu_mode) << 60) | (vm->root_page_table >> MMU_PAGE_SHIFT);
riscv_csr_helper(vm, &satp, dest, op);
Expand Down

0 comments on commit a47dd91

Please sign in to comment.