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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

264 Chapter 14.<br />

14.20 Performance Counter Registers (25)<br />

The <strong>R10000</strong> processor defines two performance counters and two associated<br />

control registers, which are mapped into CP0 register 25. An encoding in the<br />

MTC0/MFC0 instructions on register 25 indicates which counter or control<br />

register is used.<br />

Each counter is a 32-bit read/write register and is incremented by one each time<br />

the countable event, specified in its associated control register, occurs. Each<br />

counter can independently count one type of event at a time.<br />

The counter asserts an interrupt, IP[7], when its most significant bit (bit 31)<br />

becomes one (the counter overflows) and the associated performance control<br />

register enables the interrupt.<br />

The counting continues after counter overflow whether or not an interrupt is<br />

signalled.<br />

The format of the control registers are shown in Figure 14-22.<br />

31<br />

Figure 14-22 Control Register Format<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 />

0<br />

23<br />

9<br />

8 5 4 3 2<br />

Event<br />

4<br />

IE<br />

1<br />

U<br />

S<br />

1<br />

K<br />

1 1 1 1<br />

0<br />

EXL

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

Saved successfully!

Ooh no, something went wrong!