Properly save/restore dpc, mcause, mbadaddr.
authorTim Newsome <tim@sifive.com>
Sun, 1 May 2016 16:53:23 +0000 (09:53 -0700)
committerTim Newsome <tim@sifive.com>
Mon, 23 May 2016 19:12:11 +0000 (12:12 -0700)
commitcb73c085a22b225576b5d5c22f74490f9e30a5a8
treedbdf77111d6ed2a5a334ec862e93b39ce50cb4a1
parent784fea2bbec803944eb923196c77d38427b3f554
Properly save/restore dpc, mcause, mbadaddr.

Also clear dcsr.cause when leaving Debug Mode so future traps go where
they should.
riscv/gdbserver.cc
riscv/gdbserver.h
riscv/insns/sret.h