arch-riscv: Add interrupt handling
authorAlec Roelke <alec.roelke@gmail.com>
Fri, 13 Jul 2018 14:48:01 +0000 (10:48 -0400)
committerAlec Roelke <alec.roelke@gmail.com>
Wed, 16 Jan 2019 00:20:34 +0000 (00:20 +0000)
commitb47b123b32d8125ed0e797f4ae8104f69cce1df7
treeaf8551a75cc2c32c16ece1796344f59cdfc7e03a
parenta3be0a4cbc2665b91e1d83e25cfe709dd100ce5d
arch-riscv: Add interrupt handling

Implement the Interrupts SimObject for RISC-V. This basically just
handles setting and getting the values of the interrupt-pending and
interrupt-enable CSRs according to the privileged ISA reference chapter
3.1.14. Note that it does NOT implement the PLIC as defined in chapter
7, as that is used for handling external interrupts which are defined
based on peripherals that are available.

Change-Id: Ia1321430f870ff5a3950217266fde0511332485b
Reviewed-on: https://gem5-review.googlesource.com/c/14377
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
src/arch/riscv/faults.cc
src/arch/riscv/faults.hh
src/arch/riscv/interrupts.hh
src/arch/riscv/isa.cc
src/arch/riscv/isa/formats/standard.isa