aboutsummaryrefslogtreecommitdiff
path: root/target-ppc/cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'target-ppc/cpu.h')
-rw-r--r--target-ppc/cpu.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h
index b21d6b19fb..ef02f10968 100644
--- a/target-ppc/cpu.h
+++ b/target-ppc/cpu.h
@@ -740,6 +740,7 @@ struct CPUPPCState {
int exception_index;
int error_code;
int interrupt_request;
+ uint32_t pending_interrupts;
/* Those resources are used only during code translation */
/* Next instruction pointer */
@@ -1267,6 +1268,21 @@ enum {
EXCP_TRAP = 0x40,
};
+/* Hardware interruption sources:
+ * all those exception can be raised simulteaneously
+ */
+enum {
+ PPC_INTERRUPT_RESET = 0, /* Reset / critical input */
+ PPC_INTERRUPT_MCK = 1, /* Machine check exception */
+ PPC_INTERRUPT_EXT = 2, /* External interrupt */
+ PPC_INTERRUPT_DECR = 3, /* Decrementer exception */
+ PPC_INTERRUPT_HDECR = 4, /* Hypervisor decrementer exception */
+ PPC_INTERRUPT_PIT = 5, /* Programmable inteval timer interrupt */
+ PPC_INTERRUPT_FIT = 6, /* Fixed interval timer interrupt */
+ PPC_INTERRUPT_WDT = 7, /* Watchdog timer interrupt */
+ PPC_INTERRUPT_DEBUG = 8, /* External debug exception */
+};
+
/*****************************************************************************/
#endif /* !defined (__CPU_PPC_H__) */