Rev. 1.50, 10/04, page 65 of 448
Section 5 Exception Handling
5.1
Summary of Exception Handling
Exception handling processing is handled by a special routine which is executed by a reset,
general exception handling, or interrupt. For example, if the executing instruction ends
abnormally, appropriate action must be taken in order to return to the original program sequence,
or report the abnormality before terminating the processing. The process of generating an
exception handling request in response to abnormal termination, and passing control to a user-
written exception handling routine, in order to support such functions, is given the generic name of
exception handling.
The exception handling in the SH-4A is of three kinds: resets, general exceptions, and interrupts.
5.2 Register
Descriptions
Table 5.1 lists the configuration of registers related exception handling.
Table 5.1
Register Configuration
Register Name
Abbr.
R/W
P4 Address
*
Area 7
Address
*
Access
Size
TRAPA exception register
TRA
R/W
H'FF00 0020
H'1F00 0020
32
Exception event register
EXPEVT
R/W
H'FF00 0024
H'1F00 0024
32
Interrupt event register
INTEVT
R/W
H'FF00 0028
H'1F00 0028
32
Note:
*
P4 is the address when virtual address space P4 area is used. Area 7 is the address
when physical address space area 7 is accessed by using the TLB.
Table 5.2
States of Register in Each Operating Mode
Register Name
Abbr.
Power-on
Reset
Manual Reset Sleep
Standby
TRAPA exception register
TRA
Undefined
Undefined
Retained
Retained
Exception event register
EXPEVT
H'0000 0000 H'0000 0020
Retained
Retained
Interrupt event register
INTEVT
Undefined
Undefined
Retained
Retained
Summary of Contents for SuperH SH-4A
Page 2: ...Rev 1 50 10 04 page ii of xx ...
Page 8: ...Rev 1 50 10 04 page viii of xx ...
Page 116: ...Rev 1 50 10 04 page 96 of 448 ...
Page 178: ...Rev 1 50 10 04 page 158 of 448 ...
Page 206: ...Rev 1 50 10 04 page 186 of 448 ...
Page 231: ...Rev 1 50 10 04 page 211 of 448 Possible Exceptions Slot illegal instruction exception ...
Page 235: ...Rev 1 50 10 04 page 215 of 448 Possible Exceptions Slot illegal instruction exception ...
Page 238: ...Rev 1 50 10 04 page 218 of 448 Possible Exceptions Slot illegal instruction exception ...
Page 408: ...Rev 1 50 10 04 page 388 of 448 Possible Exceptions Inexact Not generated when FPSCR PR 1 ...
Page 446: ...Rev 1 50 10 04 page 426 of 448 ...
Page 468: ...Rev 1 50 10 04 page 448 of 448 ...
Page 471: ......
Page 472: ...SH 4A Software Manual ...