Renesas HD6417641 Network Card User Manual


  Open as PDF
of 1036
 
Section 9 Exception Handling
Rev. 4.00 Sep. 14, 2005 Page 215 of 982
REJ09B0023-0400
CPU Address Error in Repeat Control Period: If a CPU address error occurs in the repeat
control period, the exception is accepted but an exception code (H'070) indicating the repeat loop
period is specified in the EXPEVT. If a CPU address error occurs in instructions following a
repeat detection instruction to repeat end instruction, an exception code for instruction access or
data access is specified in the EXPEVT.
The SPC is saved according to the SPC Saved by an Exception in Repeat Control Period
description in section 9.4.2, Exception in Repeat Control Period.
After the CPU address error exception processing, the repeat control cannot be returned correctly.
To execute a repeat loop correctly, care must be taken not to generate a CPU address error in the
repeat control period.
Note: In a repeat loop consisting of one to three instructions, some restrictions apply to repeat
detection instructions and all the remaining instructions. In a repeat loop consisting of four
or more instructions, restrictions apply to only the three instructions that include a repeat
end instruction. The restriction occurs when SR.RC[11:0] 1.
Table 9.6 Instruction Where a Specific Exception Occurs When a Memory Access
Exception Occurs in Repeat Control
Number of Instructions in a Repeat Loop
Instruction Where an
Exception Occurs
1 2 3 4 or Greater
RptDtct
RptDtct1 Instruction/data
access
Instruction/data
access
Instruction/data
access
Instruction/data
access
RptDtct2 Instruction/data
access
Instruction/data
access
Instruction/data
access
RptDtct3 Instruction/data
access
Instruction/data
access
Note: The following labels are used here.
RptDtct: Repeat detection instruction address
RptDtct1: An instruction address one instruction following the repeat detection instruction
RptDtct2: An instruction address two instruction following the repeat detection instruction
RptDtct3: An instruction address three instruction following the repeat detection instruction