Revision e9df014c target-ppc/cpu.h
b/target-ppc/cpu.h | ||
---|---|---|
758 | 758 |
int error_code; |
759 | 759 |
int interrupt_request; |
760 | 760 |
uint32_t pending_interrupts; |
761 |
void *irq[32]; |
|
761 |
#if !defined(CONFIG_USER_ONLY) |
|
762 |
/* This is the IRQ controller, which is implementation dependant |
|
763 |
* and only relevant when emulating a complete machine. |
|
764 |
*/ |
|
765 |
uint32_t irq_input_state; |
|
766 |
void **irq_inputs; |
|
767 |
#endif |
|
762 | 768 |
|
763 | 769 |
/* Those resources are used only during code translation */ |
764 | 770 |
/* Next instruction pointer */ |
... | ... | |
801 | 807 |
void *puc); |
802 | 808 |
|
803 | 809 |
void do_interrupt (CPUPPCState *env); |
810 |
void ppc_hw_interrupt (CPUPPCState *env); |
|
804 | 811 |
void cpu_loop_exit(void); |
805 | 812 |
|
806 | 813 |
void dump_stack (CPUPPCState *env); |
... | ... | |
1303 | 1310 |
/* Hardware interruption sources: |
1304 | 1311 |
* all those exception can be raised simulteaneously |
1305 | 1312 |
*/ |
1313 |
/* Input pins definitions */ |
|
1314 |
enum { |
|
1315 |
/* 6xx bus input pins */ |
|
1316 |
PPC_INPUT_HRESET = 0, |
|
1317 |
PPC_INPUT_SRESET = 1, |
|
1318 |
PPC_INPUT_CKSTP_IN = 2, |
|
1319 |
PPC_INPUT_MCP = 3, |
|
1320 |
PPC_INPUT_SMI = 4, |
|
1321 |
PPC_INPUT_INT = 5, |
|
1322 |
/* Embedded PowerPC input pins */ |
|
1323 |
PPC_INPUT_CINT = 6, |
|
1324 |
PPC_INPUT_NB, |
|
1325 |
}; |
|
1326 |
|
|
1327 |
/* Hardware exceptions definitions */ |
|
1306 | 1328 |
enum { |
1307 |
PPC_INTERRUPT_RESET = 0, /* Reset / critical input */ |
|
1308 |
PPC_INTERRUPT_MCK = 1, /* Machine check exception */ |
|
1309 |
PPC_INTERRUPT_EXT = 2, /* External interrupt */ |
|
1310 |
PPC_INTERRUPT_DECR = 3, /* Decrementer exception */ |
|
1311 |
PPC_INTERRUPT_HDECR = 4, /* Hypervisor decrementer exception */ |
|
1312 |
PPC_INTERRUPT_PIT = 5, /* Programmable inteval timer interrupt */ |
|
1313 |
PPC_INTERRUPT_FIT = 6, /* Fixed interval timer interrupt */ |
|
1314 |
PPC_INTERRUPT_WDT = 7, /* Watchdog timer interrupt */ |
|
1315 |
PPC_INTERRUPT_DEBUG = 8, /* External debug exception */ |
|
1329 |
/* External hardware exception sources */ |
|
1330 |
PPC_INTERRUPT_RESET = 0, /* Reset exception */ |
|
1331 |
PPC_INTERRUPT_MCK = 1, /* Machine check exception */ |
|
1332 |
PPC_INTERRUPT_EXT = 2, /* External interrupt */ |
|
1333 |
PPC_INTERRUPT_SMI = 3, /* System management interrupt */ |
|
1334 |
PPC_INTERRUPT_CEXT = 4, /* Critical external interrupt */ |
|
1335 |
PPC_INTERRUPT_DEBUG = 5, /* External debug exception */ |
|
1336 |
/* Internal hardware exception sources */ |
|
1337 |
PPC_INTERRUPT_DECR = 6, /* Decrementer exception */ |
|
1338 |
PPC_INTERRUPT_HDECR = 7, /* Hypervisor decrementer exception */ |
|
1339 |
PPC_INTERRUPT_PIT = 8, /* Programmable inteval timer interrupt */ |
|
1340 |
PPC_INTERRUPT_FIT = 9, /* Fixed interval timer interrupt */ |
|
1341 |
PPC_INTERRUPT_WDT = 10, /* Watchdog timer interrupt */ |
|
1316 | 1342 |
}; |
1317 | 1343 |
|
1318 | 1344 |
/*****************************************************************************/ |
Also available in: Unified diff