Architecture

Chapter 8 Debugging Functions

The R3900 Processor Core has the following support functions for debugging that have been added to the R3000A instruction base. They are independent of the R3000A architecture, which makes them transparent to user programs.

The real-time debugging system is supported by a third party.

Debug exceptions (Single Step, Break Instruction)

Additional register (DEPC) for holding the PC value when a debug exception occurs

Additional register (Debug) for controlling debug exceptions

Additional instruction (DERET) for return from a debug exception

8.1 System Control Processor (CP0) Registers

<Exception Processing>

Status register

Cause register

EPC register

BadVAddr register

PRld register

Config register

Cache register

<Debugging>

Debug register

R3900 Processor Core additional

registers not present in R3000A

DEPC register

Figure 8-1 CP0 Registers

When a debug exception occurs, only registers Debug and DEPC are updated. The registers accessed by user application programs (general-purpose registers, Status, Cause, EPC, BadVAddr, PRId, Config and Cache) retain their values.

83

Page 94
Image 94
Toshiba TX39 user manual Debugging Functions, System Control Processor CP0 Registers