From 73c694565c6144e0c4e15041b5250a04a25107c3 Mon Sep 17 00:00:00 2001 From: Alistair Francis Date: Mon, 13 Jan 2014 13:35:26 +1000 Subject: Microblaze: Convert Microblaze-pic handling to GPIOs This patch uses inbound GPIO lines (IRQ and FIR) for interrupts instead of using the old pic_cpu method, which doesn't correspond to real hardware. This creates the CPU's inbound IRQ and FIR GPIO lines and updates the Microblaze boards to use this new method. Signed-off-by: Alistair Francis Suggested-by: Peter Crosthwaite Reveiwed-by: Edgar E. Iglesias Tested-by: Edgar E. Iglesias Signed-off-by: Edgar E. Iglesias --- target-microblaze/cpu.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'target-microblaze/cpu.h') diff --git a/target-microblaze/cpu.h b/target-microblaze/cpu.h index e1415f0..1df014e 100644 --- a/target-microblaze/cpu.h +++ b/target-microblaze/cpu.h @@ -48,6 +48,10 @@ typedef struct CPUMBState CPUMBState; /* MicroBlaze-specific interrupt pending bits. */ #define CPU_INTERRUPT_NMI CPU_INTERRUPT_TGT_EXT_3 +/* Meanings of the MBCPU object's two inbound GPIO lines */ +#define MB_CPU_IRQ 0 +#define MB_CPU_FIR 1 + /* Register aliases. R0 - R15 */ #define R_SP 1 #define SR_PC 0 -- cgit v1.1