time stamp register

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
antioche
Posts: 1
Joined: Wed Mar 01, 2006 5:03 pm

time stamp register

Post 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 ?
cheriff
Regular
Posts: 258
Joined: Wed Jun 23, 2004 5:35 pm
Location: Sydney.au

Re: time stamp register

Post 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
Damn, I need a decent signature!
Post Reply