Add TLB bypass for instruction emulation
authorvisa <visa@openbsd.org>
Wed, 11 Jan 2023 03:19:52 +0000 (03:19 +0000)
committervisa <visa@openbsd.org>
Wed, 11 Jan 2023 03:19:52 +0000 (03:19 +0000)
commit16e66f46ab97ec65f1d95baa88b1f4e0d3ac8ae9
treedfe6426389b44a30d2afa83f74c6d746360f93fd
parent88eb8680f943aec99625648b1857f5201efff51e
Add TLB bypass for instruction emulation

copyinsn() fetches a userland instruction through the direct map.
This lets emulation work with execute-only virtual memory mappings.

OK deraadt@
sys/arch/mips64/include/cpu.h
sys/arch/mips64/include/pmap.h
sys/arch/mips64/mips64/fp_emulate.c
sys/arch/mips64/mips64/pmap.c
sys/arch/mips64/mips64/trap.c