Skip to content

Commit

Permalink
Fixed some inaccuracies added in commit cc16e24
Browse files Browse the repository at this point in the history
  • Loading branch information
ergo720 committed Dec 1, 2024
1 parent ecb1553 commit de0dd9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions lib86cpu/core/memory_management.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,6 @@ tlb_flush_l(cpu_t *cpu)
tlb_flush<false, true>(cpu);
}

void
tlb_flush(cpu_t *cpu)
{
tlb_flush<false, false>(cpu);
}

int8_t
check_page_access(cpu_t *cpu, uint8_t access_level, uint8_t mem_access)
{
Expand Down
4 changes: 2 additions & 2 deletions lib86cpu/core/translate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -654,8 +654,8 @@ void tc_invalidate(cpu_ctx_t *cpu_ctx, addr_t phys_addr, [[maybe_unused]] uint8_
}
}

template void tc_invalidate<true>(cpu_ctx_t *cpu_ctx, addr_t virt_addr, [[maybe_unused]] uint8_t size);
template void tc_invalidate<false>(cpu_ctx_t *cpu_ctx, addr_t virt_addr, [[maybe_unused]] uint8_t size);
template void tc_invalidate<true>(cpu_ctx_t *cpu_ctx, addr_t phys_addr, [[maybe_unused]] uint8_t size);
template void tc_invalidate<false>(cpu_ctx_t *cpu_ctx, addr_t phys_addr, [[maybe_unused]] uint8_t size);

static translated_code_t *
tc_cache_search(cpu_t *cpu, addr_t pc)
Expand Down

0 comments on commit de0dd9c

Please sign in to comment.