MOTOROLA
Chapter 7. Exceptions
7-1
Chapter 7
Exceptions
70
70
Core exceptions can be generated when an exception condition occurs. Exception sources
in the MPC860 include the following:
¥
External interrupt request
¥
Certain memory access conditions (protection faults and bus errors)
¥
Internal errors, such as an attempt to execute an unimplemented opcode
¥
Trap instructions
¥
Internal exceptions (breakpoints and debug counterÕs expiration)
Exception handling is transparent to user software and uses the same mechanism to handle
all types of exceptions. When an exception is taken, control is transferred to an exception
handler located at an offset deÞned for the type of exception encountered. The exception
preÞx bit, MSR[IP], determines whether this base address for the vector table resides at
0x000n_nnnn (IP = 0) or 0xFFFn_nnnn (IP = 1). Exceptions are handled in supervisor
mode.
After the exception has been handled, the handler returns control to the interrupting
program. As speciÞed in the PowerPC Family: The Programming Environments for 32-Bit
Implementations, the core implements a precise exception model. This means that when an
exception is taken, the following conditions are met:
¥
Subsequent instructions in the program ßow are discarded.
¥
Previous instructions Þnish and write back their results.
¥
The address of the faulting instruction is saved in SRR0 and the machine state of the
interrupted process is saved in SRR1.
¥
When the exception is taken, the instruction causing the exception might not have
started executing, could be partially executed, or has completed, depending on the
exception and instruction types. See Table 7-20.
For more information, see Section 7.1.4, ÒImplementing the Precise Exception Model.Ó
Содержание MPC860 PowerQUICC
Страница 3: ...MPC860UM AD 07 98 REV 1 MPC860 PowerQUICC ª UserÕs Manual ...
Страница 36: ...xxxvi MPC860 PowerQUICC UserÕs Manual MOTOROLA CONTENTS Paragraph Number Title Page Number ...
Страница 78: ...I iv MPC860 PowerQUICC UserÕs Manual MOTOROLA Part I Overview ...
Страница 88: ...1 10 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part I Overview ...
Страница 114: ...3 16 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part I Overview ...
Страница 226: ...8 32 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part II PowerPC Microprocessor Module ...
Страница 262: ...9 36 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part II PowerPC Microprocessor Module ...
Страница 274: ...III iv MPC860 PowerQUICC UserÕs Manual MOTOROLA Part III Configuration ...
Страница 320: ...12 12 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part III Configuration ...
Страница 325: ...MOTOROLA Part IV Hardware Interface IV v Part IV Hardware Interface ...
Страница 326: ...IV vi MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 352: ...13 26 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 394: ...14 42 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 426: ...15 32 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 530: ...17 26 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part IV Hardware Interface ...
Страница 632: ...21 44 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 660: ...22 28 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 708: ...24 24 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 748: ...27 20 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 846: ...31 20 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 914: ...35 12 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 948: ...36 34 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part V The Communications Processor Module ...
Страница 998: ...37 48 MPC860 PowerQUICC UserÕs Manual MOTOROLA Part VI Debug and Test ...
Страница 1016: ...A 10 MPC860 PowerQUICC UserÕs Manual MOTOROLA Appendixes ...
Страница 1024: ...B 8 MPC860 PowerQUICC UserÕs Manual MOTOROLA Appendixes ...
Страница 1030: ...C 6 MPC860 PowerQUICC UserÕs Manual MOTOROLA Appendixes ...
Страница 1086: ...Glossary 12 MPC860 PowerQUICC UserÕs Manual MOTOROLA ...
Страница 1106: ......