Interrupts and Exceptions
e200z3 Power Architecture Core Reference Manual, Rev. 2
Freescale Semiconductor
4-23
The DBSR provides a syndrome to differentiate among debug exceptions that can generate the same
interrupt.
lists register settings when a debug interrupt is taken.
Return (RET)
Return exceptions are enabled and
rfi
is executed. Return debug exceptions are not generated for
rfci
or
rfdi
.
If MSR[DE] = 1 when
rfi
executes, a debug interrupt occurs if no higher priority, enabled exception exists.
CSRR0 (debug APU disabled) or DSRR0 (debug APU enabled) is to set the address of the
rfi
. If MSR[DE] = 0
when
rfi
executes, a debug interrupt does not occur immediately; the event is recorded by setting DBSR[RET]
and DBSR[IDE].
Critical return
(CRET)
Critical return debug events are enabled and
rfci
is executed. Critical return debug exceptions are only
generated for
rfci
. If MSR[DE]=1 when
rfci
executes, a debug interrupt occurs if no higher priority exception
exists that is enabled to cause an interrupt. CSRR0 (debug APU disabled) or DSRR0 (debug APU enabled) is
set to the address of the
rfci
. If MSR[DE] = 0 when
rfci
executes, a debug interrupt does not occur immediately,
but the event is recorded by setting DBSR[CRET] and DBSR[IDE]. Note that critical return debug events should
not normally be enabled unless the debug APU is enabled to avoid corrupting CSRR0 and CSRR1.
Instruction
complete
(ICMP)
An instruction completed while this event is enabled. A
mtmsr
or
mtdbcr0
that causes both MSR[DE] and
DBCR0[IDM] to end up set, enabling precise debug mode, may cause an imprecise (delayed) debug exception
to be generated due to an earlier recorded event in the DBSR.
Interrupt taken
(IRPT)
A non-critical interrupt context switch is detected. This exception is imprecise and unordered with respect to
the program flow. Note that an IRPT debug interrupt occurs only when detecting a non-critical interrupt on the
e200z3. The value saved in CSRR0/DSRR0 is the address of the non-critical interrupt handler.
Critical
interrupt taken
(CIRPT)
A critical interrupt context switch is detected. This exception is imprecise and unordered with respect to
program flow. Note that a CIRPT debug interrupt occurs only when detecting a critical interrupt on the e200z3.
The address of the critical interrupt handler is saved in CSRR0/DSRR0. To avoid corrupting CSRR0 and
CSRR1, critical interrupt taken debug events should not normally be enabled unless the debug APU is enabled.
Unconditional
debug event
(UDE)
The unconditional debug event signal (
p_ude) transitions to asserted state.
Debug counter A debug counter exception is enabled and a debug counter decrements to zero.
External
debug
An external debug exception is enabled and an external debug event (
p_devt1, p_devt2) transitions to the
asserted state.
Table 4-25. Debug Interrupt Register Settings
Register
Setting Description
CSRR0 (MSR[DE]=0)
DSRR0
1
(MSR[DE]=1)
Set to the effective address of the excepting instruction for IAC, BRT, RET, CRET, and TRAP.
Set to the effective address of the next instruction to be executed following the excepting instruction for
DAC and ICMP.
For UDE, IRPT, CIRPT, DCNT, or DEVT type exceptions, set to the effective address of the instruction
that would have attempted to execute next if no exception conditions were present.
CSRR1/ DSRR1
Set to the contents of the MSR at the time of the interrupt
Table 4-24. Debug Exceptions (continued)
Exception
Cause
Instruction
address
compare (IAC)
Instruction address compare events are enabled and an instruction address match occurs as defined by the
debug control registers. This could either be a direct instruction address match or a selected set of instruction
addresses. IAC has the highest priority of all instruction-based interrupts, even if the instruction itself
encountered an ITLB error or instruction storage exception.
Содержание e200z3
Страница 1: ...e200z3 Power Architecture Core Reference Manual Supports e200z3 e200z335 e200z3coreRM Rev 2 06 2008 ...
Страница 32: ...e200z3 Power Architecture Core Reference Manual Rev 2 xii Freescale Semiconductor ...
Страница 50: ...Register Model e200z3 Power Architecture Core Reference Manual Rev 2 2 2 Freescale Semiconductor ...
Страница 238: ...Memory Management Unit e200z3 Power Architecture Core Reference Manual Rev 2 5 16 Freescale Semiconductor ...
Страница 332: ...Power Management e200z3 Power Architecture Core Reference Manual Rev 2 8 4 Freescale Semiconductor ...
Страница 424: ...Revision History e200z3 Power Architecture Core Reference Manual Rev 2 A 2 Freescale Semiconductor ...