Adapt tlb flush calls following arm64/pmap.c
authorjca <jca@openbsd.org>
Sun, 3 Sep 2023 00:23:25 +0000 (00:23 +0000)
committerjca <jca@openbsd.org>
Sun, 3 Sep 2023 00:23:25 +0000 (00:23 +0000)
commit9e18b8c28504b6e54519a1aa96253d913d0b1a3b
tree5b384c04da5ce8012bc5e6635b5f06d7cf7eabc5
parentf813a5bf6151445811cfab2dc8cb48ab962f7652
Adapt tlb flush calls following arm64/pmap.c

1. in pmap_enter() no need to call tlb_flush_page() if we don't actually
insert a pted
2. all callers of pmap_pte_remove() already call tlb_flush_page()

This seems to result in some performance improvement (18mn -> 17mn15)
while building libc on a Hifive Unmatched).  Also zap whitespace and
useless comments to further reduce the diff with arm64/pmap.c

ok kettenis@
sys/arch/riscv64/riscv64/pmap.c