Download EDK Reference Manual
Transcript
Connect Command Options Cache Word Access The cache entries are mapped to the address space in a way-by-way manner. Using the provided example, if the cache line size is 32 byte and each way has 16 sets, then 0x70000000~0x700001FF is mapped to I-Cache way 0 and 0x70000200~0x700003FF is mapped to I-Cache way 1. Cache Tag and Parity Access The cache tag address space contains the tag, status, and parity information of the cache entries for the corresponding cache address space. In the provided example, the tag information for I-Cache entry at 0x70000100 is available at 0x70008100 and the tag information for the D-Cache entry at 0x78000600 is available at 0x78008600. The PowerPC 405 processor uses one word to store the tag and status of one cache line and one word to store parities. The PowerPC 440 processor also uses two words (first word is tag low and second word is tag high) to store the tag of one cache line. For more information on how to translate the tag bits, refer to the icread and dcread instructions in the respective PowerPC405 User Manual or PowerPC440 User Manual. A link to these documents can be found in Appendix E, Additional Resources. Because the cacheline size is 32 bytes, the tag values repeat within the same cacheline. DCR Address Spaces Although the DCR bus is not in the same address domain as the PLB bus, you can access the DCR bus in XMD through the PLB address map. Each DCR address corresponds to one DCR register, which has 4 bytes. When it is mapped to the PLB address, it needs 4 bytes of address range. In the example shown in Example Debug Session for PowerPC Processor ISS Target, page 150, the address mappings are: DCR Address Mapped Address 0x0 0x78020000 0x1 0x78020004 0x2 0x78020008 … ... 0x10 0x78020040 Advanced PowerPC Processor Debugging Tips Support for Running Programs from ISOCM and ICACHE There are restrictions on debugging programs from PowerPC 405 processor ISOCM memory and instruction caches (ICACHEs). One such restriction is that you cannot use software breakpoints. In such cases, XMD can set hardware breakpoints automatically if the address ranges for the ISOCM or ICACHEs are provided as options to the connect command in XMD. In this case of ICACHE, this is only necessary if you try to run programs completely from the ICACHE by locking its contents in ICACHE. For more information, refer to the “Xilinx Platform Studio Help”. The special features of the PowerPC processor can be accessed from XMD by specifying the appropriate options to the connect command in the XMD console. Embedded System Tools Reference Manual UG111 July 6, 2011 www.xilinx.com 151