forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

mfpc (move from peformance counter) not supported.

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development
View previous topic :: View next topic  
Author Message
emoon



Joined: 18 Jan 2004
Posts: 91
Location: Stockholm, Sweden

PostPosted: Sat Nov 20, 2004 11:41 pm    Post subject: mfpc (move from peformance counter) not supported. Reply with quote

when doing:

__asm __volatile ("mfpc %0,0" :"=r"(x) :"r"(x) : "memory");

i get:

{standard input}:318: Error: opcode not supported on this processor: r5900 (mips3) `mfpc $2,0'

.emoon
Back to top
View user's profile Send private message Visit poster's website
pixel



Joined: 30 Jan 2004
Posts: 791

PostPosted: Sat Nov 20, 2004 11:52 pm    Post subject: Reply with quote

Indeed.

Please, ooPo, could you check binutils, file opcodes/mips-opc.c, seek to the line 760
Code:
{"mfpc",    "t,P",      0x4000c801, 0xffe0ffc1, LCD|WR_t|RD_C0,         M1|N5   },
and replace "M1|N5" by "M1|N5|T5" please ? Thanks ;)
_________________
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
Back to top
View user's profile Send private message
mrbrown



Joined: 17 Jan 2004
Posts: 1536

PostPosted: Sun Nov 21, 2004 1:12 am    Post subject: Reply with quote

Actually, insert a new line after that mfpc line and use:
Code:
{"mfpc",    "t,P",      0x4000c801, 0xffe0ffc1, RD_C0|WR_t,             T5      },


The LCD flag is incorrect for r5900 so there needs to be a seperate line for mfpc.
_________________
"He was warned..."
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS2 Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group