Rev. 1.50, 10/04, page 434 of 448
C.
Speculative Execution for Subroutine Return
The SH-4A has the mechanism to issue an instruction fetch speculatively when returning from
subroutine. By issuing an instruction fetch speculatively, the execution cycles to return from
subroutine may be shortened.
This function is enabled by setting 0 to the bit 5 (RABD) of CPU Operation Mode register
(CPUOPM). But this speculative instruction fetch may issue the access to the address that should
not be accessed from the program. Therefore, a bus access to an unexpected area or an internal
instruction address error may cause a problem. As for the effect of this bus access to unexpected
memory area, refer to Appendix B, Instruction Prefetching and Its Side Effects.
Usage Condition: When the speculative execution for subroutine return is enabled, the RTS
instruction should be used to return to the address set in PR by the JSR, BSR,
or BSRF instructions. It can prevent the access to unexpected address and
avoid the problem.
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 ...