CodeWarrior Development Studio for Power Architecture - Freescale ...
CodeWarrior Development Studio for Power Architecture - Freescale ...
CodeWarrior Development Studio for Power Architecture - Freescale ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Working with Projects<br />
Debugging Projects<br />
Figure 3.1 Guest TLB <strong>for</strong> a core<br />
d. Observe that the first translation entry is not 1-1 0x0c000000 -> 0x000100000.<br />
There<strong>for</strong>e, add the following command in the memory configuration file.<br />
translate v:0x0c000000 p:0x00100000 0x00100000<br />
Note that you do not need to add the translation entries that are already 1-1.<br />
e. In case you find that TLB 0 also has non 1-1 translations and you want to access the respective<br />
memory, go ahead and add the required translate command in the memory configuration file.<br />
f. Display the guest tlb <strong>for</strong> another core, <strong>for</strong> example, gtlb 3 1, and check the TLB 1.<br />
Figure 3.2 TLB 1 <strong>for</strong> another core<br />
g. The first translation entry in the figure is the same that you added in the memory configuration file<br />
in the previous steps. In addition, observe the non 1-1 entry 0x01000000 -> 0x002000000. Note<br />
that this is the stack and is present in other SMP secondary cores. However, in this case, instruct<br />
the debugger to access the 0x01000000- 0x01ffffff range by using virtual addresses. For example:<br />
range v:0x01000000 v:0x01ffffff 4 ReadWrite LogicalData<br />
h. Follow the same procedure to access the 0x00300000 - 0x0030ffff range. For example:<br />
range v:0x00300000 v:0x0030ffff 4 ReadWrite LogicalData<br />
34 <strong>Power</strong> <strong>Architecture</strong>® Processors Getting Started Guide