Fix 2 trigger corner cases. (#229)
authorTim Newsome <tim@sifive.com>
Fri, 10 Aug 2018 21:55:28 +0000 (14:55 -0700)
committerAndrew Waterman <aswaterman@gmail.com>
Fri, 10 Aug 2018 21:55:28 +0000 (14:55 -0700)
commitbed0a54fdaedf09a4c6523a2a116b59d021fb12b
tree979e52e17acb6deef8bf2c5d17580f6b60141c3e
parent1ff2a70ec87c0a418ca38cdff9b14fc29e4b1ecb
Fix 2 trigger corner cases. (#229)

1. When hitting a trigger during a single step, dcsr.cause must reflect
the trigger not the step.
2. Also check for triggers on accesses that require a slow path fetch.
riscv/execute.cc
riscv/mmu.h