Set tval to 0 on traps with no specified tval
authorAndrew Waterman <andrew@sifive.com>
Mon, 27 Nov 2017 22:18:06 +0000 (14:18 -0800)
committerAndrew Waterman <andrew@sifive.com>
Mon, 27 Nov 2017 22:18:06 +0000 (14:18 -0800)
commit160c1a5cee45d3842824af565e52458e2f8b3c48
tree43e7764709dddaee8c6eaaf482fb196e8b92ba76
parentd7ceeabbe6bb2bfc153c6b8d9a1db98f0c975347
Set tval to 0 on traps with no specified tval

Simply not writing the register was not a conformant implementation.
riscv/processor.cc
riscv/trap.h