OSDN Git Service

target/nios2: Implement EIC interrupt processing
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 21 Apr 2022 15:17:27 +0000 (08:17 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 26 Apr 2022 15:17:05 +0000 (08:17 -0700)
commita25c4eff32ba6192cff648ccaf0316bd829c80af
tree3d7c78f1735eb3c9437f7846b91f7701f6b439c6
parent6bcc59cafa271b634009bc92c01c866602ea4c53
target/nios2: Implement EIC interrupt processing

This is the cpu side of the operation.  Register one irq line,
called EIC.  Split out the rather different processing to a
separate function.

Delay initialization of gpio irqs until realize.  We need to
provide a window after init in which the board can set eic_present.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20220421151735.31996-57-richard.henderson@linaro.org>
target/nios2/cpu.c
target/nios2/cpu.h
target/nios2/helper.c