arch-riscv: Add support for fault handling
authorAlec Roelke <ar4jc@virginia.edu>
Mon, 19 Feb 2018 03:28:44 +0000 (22:28 -0500)
committerAlec Roelke <ar4jc@virginia.edu>
Sat, 28 Jul 2018 18:42:43 +0000 (18:42 +0000)
commit2595fe6b2834fa0af15baf6f5ad4a8f523c838a6
tree95b61f9c62b0ed8c05f8829daaf303cf6f7d61ad
parent0a7193c1712ceba021732e4ad2b4dfb0a10394cc
arch-riscv: Add support for fault handling

This patch adds support for handling RISC-V faults, including tracking
current and previous execution privilege, correctly switching to
the privilege mode specified by CSRs, and setting/storing the PC.  It
also includes changes introduced by patch #9821, which disables
interrupts during handling of a fault.

Change-Id: Ie9c0f29719620c20783540d3bdb2db44f6114fc9
Reviewed-on: https://gem5-review.googlesource.com/9161
Maintainer: Alec Roelke <ar4jc@virginia.edu>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
src/arch/riscv/faults.cc
src/arch/riscv/faults.hh