| View previous topic :: View next topic |
| Author |
Message |
antioche
Joined: 01 Mar 2006 Posts: 1
|
Posted: Wed Mar 01, 2006 5:20 pm Post subject: time stamp register |
|
|
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 ? |
|
| Back to top |
|
 |
cheriff Regular
Joined: 23 Jun 2004 Posts: 262 Location: Sydney.au
|
Posted: Wed Mar 01, 2006 7:18 pm Post subject: Re: time stamp register |
|
|
| 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?repname=ps2&path=%2Ftrunk%2Fps2Perf%2F&rev=0&sc=0 _________________ Damn, I need a decent signature! |
|
| Back to top |
|
 |
|