Page 1 of 1

time stamp register

Posted: Wed Mar 01, 2006 5:20 pm
by antioche
Is there a tilme stamp register on R5900 processor ?

I have tried the classical mips instruction:

__asm__ __volatile__("mfc0 %0,$9; nop" : "=r" (dest))

but I get only an illgal instruction.

I dont have the Instruction set manual. Can someone help me ?

Re: time stamp register

Posted: Wed Mar 01, 2006 7:18 pm
by cheriff
antioche wrote:Is there a tilme stamp register on R5900 processor ?

I have tried the classical mips instruction:

__asm__ __volatile__("mfc0 %0,$9; nop" : "=r" (dest))

but I get only an illgal instruction.

I dont have the Instruction set manual. Can someone help me ?
There are other threads that mention the asm to read the time stamp, but you may be interested on the EE's performance counters:
http://svn.ps2dev.org/listing.php?repna ... rev=0&sc=0