
Altera Corporation
17
Errata Sheet - Appendix A
Table 4
shows an example of incorrect trace caused by this erratum.
Table 5
shows an example where this erratum does not occur.
Note:
(a)
Extra instruction traced to indicate interrupt
Note:
(a)
Extra instruction traced to indicate interrupt
Table 4. Example of incorrect trace behavior on interrupt
Actual instructions executed
Correct behavior
Actual behavior
Address
Instruction
Trace generated
Trace generated
Decompressed
trace
Trace starts, address
0x00001000
Trace starts, address
0x00001000
0x00001000
ADD r1, r1, 1
Instruction executed
Instruction executed
0x00001000
0x00001004
B 0x00001020
Instruction executed, branch to
0x00001020
Instruction executed, branch to
0x00000018
a
IRQ handler traced
.
.
Instruction executed, branch to
0x00001020
Instruction executed, branch to
0x00000018
IRQ!
(0x00001020)
(Not executed due to
interrupt)
0x00000018
.
.
.
IRQ hander
.
.
SUBS pc, r14, #4
IRQ handler traced
.
.
Instruction executed, branch to
0x00001020
0x00000018
.
.
.
0x00001020
…
…
…
0x00001020
Table 5. Example of correct trace behavior on interrupt
Actual instructions executed
Actual behavior
Address
Instruction
Trace generated
Decompressed trace
Trace starts, address
0x00002000
Instruction executed
0x00002000
ADD r1, r1, 1
0x00002000
0x00002004
BNE 0x00002020
Failed its condition
codes
Instruction executed but failed
its condition codes
0x00002004
Failed its condition codes
(0x00002020)
(Not executed due to
interrupt)
Instruction executed, branch to
0x00000018
a
IRQ handler traced
.
.
Instruction executed, branch to
0x00002020
IRQ!
0x00000018
.
.
.
IRQ hander
.
.
SUBS pc, r14, #4
0x00000018
.
.
.
0x00002020
…
…
0x00002020