AMD Confidential
User Manual November 21
st
, 2008
150 Chapter 10: CPU Debugger
Table 10-2: Debugger Memory Dump Command Examples
When using Pacifica Virtualization Technology in simulation, the user can tell the
debugger to access memory for either the guest or the host. If multiple guests are running
under a hypervisor, the debugger will acess memory for the last guest that has run. The
user can further qualify an input address using the 'G' (Guest) and 'H' (Host) specifiers.
For example:
Command
Description
Dd c001c0de,HL
Dump the SVM host linear memory starting at address
0xC001C0DE.
Dd c001c0de,GL
Dump the last SVM guest linear memory starting at
address 0xC001C0DE.
Dd c001c0de,HP
Dump the SVM host physical memory starting at
address 0xC001C0DE.
Dd c001c0de,GP
Dump the last SVM guest physical memory starting at
address 0xC001C0DE.
Table 10-3: Debugger Pacifica Memory Dump Command Examples
If the user omits the 'G' or the 'H' specifier, the debugger will access memory from the
perspective of the attatched CPU's current state.
10.1.6 Reading PCI Configuration Registers
1. Stop the simulation as described in Section 3.1, “Tool Bar Buttons”, on page 7.
2. Open the Debugger Window (“View→Show Debugger”) or click on . The
simulation will pause and the Debugger Window will appear.
3. Use the debugger's S command to view the PCI configuration register contents for
a particular PCI function. The S command takes three hex parameters: bus,
device, function. If the specified bus, device, and function exist in the simulated
system, the debugger will display all 256 bytes of configuration data.
10.1.7 Reading CPU MSR Contents
1. Stop the simulation as described in Section 3.1, “Tool Bar Buttons”, on page 7.
2. Open the Debugger Window (“View→Show Debugger”) or click on . The
simulation will pause and the Debugger Window will appear.
3. Use the debugger's R command to view the contents of an MSR. This can be
accomplished by typing R Maddress on the debugger command line. In this case,
address is the 32-bit address (in hex) of the MSR. All leading zeros must be typed
in the address. Examples of MSR reads are shown in Table 10-4:
Command
Description
R M00000250
Displays the contents of the MSR with an address of
0x0250.
R MC001001A
Displays the contents of the MSR with an address of
0xC001001A.