target/xtensa: add MX interrupt controller
PATCH v2 2/4 target/xtensa: add MX interrupt controller
MX interrupt controller is a collection of the following devices accessible through the external registers interface:
- interrupt distributor can route each external IRQ line to the corresponding external IRQ pin of selected subset of connected xtensa cores. It has per-CPU and per-IRQ enable signals and per-IRQ software assert signals;
- IPI controller has 16 per-CPU IPI signals that may be routed to a combination of 3 designated external IRQ pins of connected xtensa cores;
- cache coherecy register controls core L1 cache participation in the SMP cluster cache coherency protocol;
- runstall register lets BSP core stall and unstall AP cores.
---
Changes v1->v2:
- fix typo in xtensa_mx_pic_ext_reg_write
hw/xtensa/Makefile.objs | 1 + hw/xtensa/mx_pic.c | 354 +++++++++++++++++++++++++++++++++++++++++++++ include/hw/xtensa/mx_pic.h | 44 ++++++ 3 files changed, 399 insertions(+) create mode 100644 hw/xtensa/mx_pic.c create mode 100644 include/hw/xtensa/mx_pic.h
hw/xtensa/Makefile.objs +1 -0
@@ -1,3 +1,4 @@ +obj-y += mx_pic.o obj-y += pic_cpu.o obj-y += sim.o obj-y += xtensa_memory.o
hw/xtensa/mx_pic.c new file +354 -0
354 lines not on this page · raw message
include/hw/xtensa/mx_pic.h new file +44 -0
44 lines not on this page · raw message
Signature · 1 line
2.11.0