| Electronic Components Datasheet Search |
|
UM0434 Datasheet(PDF) 188 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0434 Datasheet(HTML) 188 Page - STMicroelectronics |
|
188 / 390 page ![]() UM0434 Interrupts and exceptions 189/391 6.8 Interrupt processing When an interrupt is taken, SRR0/SRR1 for non-critical interrupts, CSRR0/CSRR1 for critical interrupts, and either CSRR0/CSRR1 or DSRR0/DSRR1 for debug interrupts are used to save the contents of the MSR and to help identify where instruction execution should resume after the interrupt is handled. When an interrupt occurs, one of SRR0/CSRR0/DSRR0 is set to the address of the instruction that caused the exception or to the following instruction if appropriate. SRR1 is used to save machine state (selected MSR bits) on non-critical interrupts and to restore those values when an rfi executes. CSRR1 is used to save machine status (selected MSR bits) on critical interrupts and to restore those values when an rfci instruction is executed. DSRR1 is used to save machine status (selected MSR bits) on debug interrupts when the debug APU is enabled and to restore those values when an rfdi executes. The ESR is loaded with information specific to the exception type. Some interrupt types can only be caused by a single exception type and thus do not use an ESR setting to indicate the interrupt cause. The MSR is updated to preclude unrecoverable interrupts from occurring during the initial portion of the interrupt handler. Specific settings are described in Table 149. For alignment, data storage, or data TLB miss interrupts, or for a machine check due to cache parity error on data access interrupts, the data exception address register (DEAR) is loaded with the address that caused the interrupt to occur. For machine check interrupts, the MCSR is loaded with information specific to the exception type. Post-instruction execution exceptions Debug: DAC/IAC linked2 Debug: DAC unlinked2 Data address compare linked with instruction address compare Data address compare unlinked Notes: Exceptions require corresponding debug event enabled, MSR[DE] = 1 and DBCR0[IDM] = 1. Saved PC points to the instruction following the load or store instruction causing the DAC event. 15 Debug: ICMP Completion of an instruction. Note: Exceptions require corresponding debug event enabled, MSR[DE]=1, and DBCR0[IDM]=1. 15 1. These exceptions are sampled at instruction boundaries, and may actually occur after exceptions that are due to a currently executing instruction. If one of these exceptions occurs during execution of an instruction in the pipeline, it is not processed until the pipeline has been flushed, and the exception associated with the excepting instruction may occur first. 2. When no data storage interrupt or data TLB error occurs, the core implements the data address compare debug exceptions as post-instruction exceptions, which differs from the Book E definition. When a TEA (either a DTLB error or data storage interrupt) occurs in conjunction with an enabled DAC or linked DAC/IAC on a load or store class instruction, the debug interrupt takes priority, and the saved PC value points to the load or store class instruction, rather than to the next instruction. Table 148. e200z3 exception priorities (continued) Priority Exception Cause IVOR |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |