CVSROOT: /cvs Module name: src Changes by: v...@cvs.openbsd.org 2017/08/26 09:21:48
Modified files: sys/arch/mips64/mips64: db_machdep.c fp_emulate.c trap.c Log message: Use copyin32() instead of a direct memory load when fetching a branch instruction for branch emulation. This ensures the userspace memory access is properly guarded and that TLB faults are handled. In order not to complicate the interface of MipsEmulateBranch(), each caller now has to provide the branch instruction for the function. Feedback from miod@