Alignment Exception (0X00600) - Freescale Semiconductor MPC850 User Manual

Mpc850 family integrated communications microprocessor
Table of Contents

Advertisement

• or, one bus cycle for aligned access
• or, two bus cycles for unaligned access
System-level exception latency can be longer than the interval from B to E. If an instruction
ahead of the exception-causing instruction also generates an exception, that exception is
recognized first. If it is important to minimize exception latency, exception handlers should
save the machine context and reenable exceptions as quickly as possible so pending
external exceptions are handled quickly.
Register settings for the external interrupt exception are shown in Table 6-6.
Table 6-6. Register Settings after an External Interrupt
Register
SRR0
Set to the effective address of the instruction that the processor would have attempted to execute next if
no interrupt conditions were present.
SRR1
0
1–4
5–9
10–15
16–31
Note that depending on the implementation, reserved bits in the MSR may not be copied to SRR1.
MSR
POW 0
ILE
EE
0
PR
0

6.1.2.6 Alignment Exception (0x00600)

This section describes conditions that can cause alignment exceptions in the processor.
Similar to DSI exceptions, alignment exceptions use SRR0 and SRR1 to save the machine
state and DSISR to determine the source of the exception. An alignment exception occurs
when no higher priority exception exists and the implementation cannot perform a memory
access for one of the following reasons:
• The operand of lmw, stmw, lwarx, or stwcx. is not aligned.
• The instruction is lmw, stmw, lswi, lswx, stswi, or stswx and the processor is in
little-endian mode.
• An unaligned load or store in little-endian mode.
For lmw, stmw, lswi, lswx, stswi, and stswx instructions in little-endian mode, an
alignment exception always occurs. For lmw and stmw instructions with an operand that is
not aligned in big-endian mode, and for lwarx and stwcx. with an operand that is not
aligned in either endian mode, an implementation may yield boundedly-undefined results
instead of causing an alignment exception. For all other cases listed above, an
implementation may execute the instruction correctly instead of causing an alignment
exception.
Setting Description
Loaded with equivalent bits from the MSR
Cleared
Loaded with equivalent bits from the MSR
Cleared
Loaded with equivalent bits from the MSR
FP
0
ME
SE
0
BE
0
Chapter 6. Exceptions
IP
LE
IR
0
DR
0
RI
0
Exceptions
Set to value of ILE

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mpc850deMpc850dslMpc850sr

Table of Contents