arch-riscv: Add support for trap value register
authorAlec Roelke <ar4jc@virginia.edu>
Mon, 19 Feb 2018 03:28:44 +0000 (22:28 -0500)
committerAlec Roelke <alec.roelke@gmail.com>
Sat, 28 Jul 2018 18:48:30 +0000 (18:48 +0000)
commit76e7aec54256696dfdc9567c7ea325fb07c48ef1
treea5e7ed299c1b2094bdae85f6d9ca017223dffdd8
parent2595fe6b2834fa0af15baf6f5ad4a8f523c838a6
arch-riscv: Add support for trap value register

RISC-V has a set of CSRs that contain information about a trap that was
taken into each privilegel level, such as illegal instruction bytes or
faulting address.  This patch adds that register, modifies existing
faults to make use of it, and adds a new fault for future use with
handling page faults and bad addresses.

Change-Id: I3004bd7b907e7dc75e5f1a8452a1d74796a7a551
Reviewed-on: https://gem5-review.googlesource.com/11135
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Alec Roelke <alec.roelke@gmail.com>
src/arch/riscv/faults.cc
src/arch/riscv/faults.hh
src/arch/riscv/insts/unknown.hh
src/arch/riscv/isa/decoder.isa
src/arch/riscv/isa/formats/fp.isa
src/arch/riscv/isa/formats/standard.isa