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.
Содержание SuperH SH-4A
Страница 2: ...Rev 1 50 10 04 page ii of xx ...
Страница 8: ...Rev 1 50 10 04 page viii of xx ...
Страница 116: ...Rev 1 50 10 04 page 96 of 448 ...
Страница 178: ...Rev 1 50 10 04 page 158 of 448 ...
Страница 206: ...Rev 1 50 10 04 page 186 of 448 ...
Страница 231: ...Rev 1 50 10 04 page 211 of 448 Possible Exceptions Slot illegal instruction exception ...
Страница 235: ...Rev 1 50 10 04 page 215 of 448 Possible Exceptions Slot illegal instruction exception ...
Страница 238: ...Rev 1 50 10 04 page 218 of 448 Possible Exceptions Slot illegal instruction exception ...
Страница 408: ...Rev 1 50 10 04 page 388 of 448 Possible Exceptions Inexact Not generated when FPSCR PR 1 ...
Страница 445: ...Rev 1 50 10 04 page 425 of 448 Possible Exceptions Invalid operation Overflow Underflow Inexact ...
Страница 446: ...Rev 1 50 10 04 page 426 of 448 ...
Страница 468: ...Rev 1 50 10 04 page 448 of 448 ...
Страница 471: ......
Страница 472: ...SH 4A Software Manual ...