riscv: Remove outdated condition in page_fault_handler

Since r366355 and r366284 we panic on access faults rather than treating
them like page faults so this condition is never true.

Reviewed by:	jhb (mentor), markj, mhorne
Approved by:	jhb (mentor), markj, mhorne
Differential Revision:	https://reviews.freebsd.org/D26686
This commit is contained in:
Jessica Clarke 2020-10-06 13:03:31 +00:00
parent 105708ca1c
commit 2152743f11
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=366487

View File

@ -220,8 +220,7 @@ page_fault_handler(struct trapframe *frame, int usermode)
va = trunc_page(stval);
if ((frame->tf_scause == EXCP_FAULT_STORE) ||
(frame->tf_scause == EXCP_STORE_PAGE_FAULT)) {
if (frame->tf_scause == EXCP_STORE_PAGE_FAULT) {
ftype = VM_PROT_WRITE;
} else if (frame->tf_scause == EXCP_INST_PAGE_FAULT) {
ftype = VM_PROT_EXECUTE;