OSDN Git Service

hw/intc: Vectored Interrupt Controller (VIC)
authorAmir Gonnen <amir.gonnen@neuroblade.ai>
Thu, 21 Apr 2022 15:17:30 +0000 (08:17 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 26 Apr 2022 15:17:05 +0000 (08:17 -0700)
commitc46cabd4a92ec18f217ad4c61e1af688a355035f
treeb22d5ad168fe8cb22e58d7d88216d0bac2ee108b
parent3747727aad1841bd07b7c9588b6d9b32182b1121
hw/intc: Vectored Interrupt Controller (VIC)

Implement nios2 Vectored Interrupt Controller (VIC).
VIC is connected to EIC. It needs to update rha, ril, rrs and rnmi
fields on Nios2CPU before raising an IRQ.
For that purpose, VIC has a "cpu" property which should refer to the
nios2 cpu and set by the board that connects VIC.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Amir Gonnen <amir.gonnen@neuroblade.ai>
Message-Id: <20220303153906.2024748-5-amir.gonnen@neuroblade.ai>
[rth: Split out nios2_vic.h]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220421151735.31996-60-richard.henderson@linaro.org>
hw/intc/Kconfig
hw/intc/meson.build
hw/intc/nios2_vic.c [new file with mode: 0644]
include/hw/intc/nios2_vic.h [new file with mode: 0644]