Set badvaddr on instruction page faults
authorAndrew Waterman <waterman@cs.berkeley.edu>
Fri, 5 Dec 2014 07:08:01 +0000 (23:08 -0800)
committerAndrew Waterman <waterman@cs.berkeley.edu>
Fri, 5 Dec 2014 07:08:01 +0000 (23:08 -0800)
commitcec752d09191e96a51f5c21ed8d51e1218f804ff
tree80a611deb7791f4dbe2ac8d726f761aa13cd2374
parent992205c27048709b85c2655bc5ce797dd2246f75
Set badvaddr on instruction page faults

This supports distinguishing the EPC (the address of the first byte of the
faulting instruction) from the address of the page fault (potentially some
bytes later).
riscv/decode.h
riscv/mmu.cc
riscv/trap.h