4 processor exceptions, Processor exceptions -17, Section 3.3.4.1 – Freescale Semiconductor ColdFire MCF52210 User Manual

Page 61: Access error exception, Table 3-7, 1 access error exception

Advertising
background image

ColdFire Core

MCF52211 ColdFire® Integrated Microcontroller Reference Manual, Rev. 2

Freescale Semiconductor

3-17

The 8-bit vector number, vector[7:0], defines the exception type and is calculated by the processor
for all internal faults and represents the value supplied by the interrupt controller in case of an
interrupt. See

Table 3-5

.

3.3.4

Processor Exceptions

3.3.4.1

Access Error Exception

The exact processor response to an access error depends on the memory reference being performed. For
an instruction fetch, the processor postpones the error reporting until the faulted reference is needed by an
instruction for execution. Therefore, faults during instruction prefetches followed by a change of
instruction flow do not generate an exception. When the processor attempts to execute an instruction with
a faulted opword and/or extension words, the access error is signaled and the instruction aborted. For this
type of exception, the programming model has not been altered by the instruction generating the access
error.

If the access error occurs on an operand read, the processor immediately aborts the current instruction’s
execution and initiates exception processing. In this situation, any address register updates attributable to
the auto-addressing modes, (for example, (An)+,-(An)), have already been performed, so the programming
model contains the updated An value. In addition, if an access error occurs during a MOVEM instruction
loading from memory, any registers already updated before the fault occurs contain the operands from
memory.

The V2 ColdFire processor uses an imprecise reporting mechanism for access errors on operand writes.
Because the actual write cycle may be decoupled from the processor’s issuing of the operation, the
signaling of an access error appears to be decoupled from the instruction that generated the write.
Accordingly, the PC contained in the exception stack frame merely represents the location in the program
when the access error was signaled. All programming model updates associated with the write instruction
are completed. The NOP instruction can collect access errors for writes. This instruction delays its

Table 3-7. Fault Status Encodings

FS[3:0]

Definition

00xx

Reserved

0100

Error on instruction fetch

0101

Reserved

011x

Reserved

1000

Error on operand write

1001

Attempted write to write-protected space

101x

Reserved

1100

Error on operand read

1101

Reserved

111x

Reserved

Advertising
This manual is related to the following products: