17.01.2013 Views

MIPS R10000 Microprocessor User's Manual - SGI TechPubs Library

MIPS R10000 Microprocessor User's Manual - SGI TechPubs Library

MIPS R10000 Microprocessor User's Manual - SGI TechPubs Library

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

254 Chapter 14.<br />

14.12 Exception Program Counter (14)<br />

The Exception Program Counter (EPC) † is a read/write register that contains the<br />

address at which processing resumes after an exception has been serviced.<br />

For synchronous exceptions, the EPC register contains either:<br />

• the virtual address of the instruction that was the direct cause of the<br />

exception, or<br />

• the virtual address of the immediately preceding branch or jump<br />

instruction (when the instruction is in a branch delay slot, and the<br />

Branch Delay bit in the Cause register is set).<br />

The processor does not write to the EPC register when the EXL bit in the Status<br />

register is set to a 1.<br />

Figure 14-14 shows the format of the EPC register.<br />

EPC Register<br />

63 0<br />

Figure 14-14 EPC Register Format<br />

† The ErrorEPC register provides a similar capability, described later in this chapter.<br />

Version 2.0 of January 29, 1997 <strong>MIPS</strong> <strong>R10000</strong> <strong>Microprocessor</strong> <strong>User's</strong> <strong>Manual</strong><br />

EPC<br />

64

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!