 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
emoon

Joined: 18 Jan 2004 Posts: 91 Location: Stockholm, Sweden
|
Posted: Sat Nov 20, 2004 11:41 pm Post subject: mfpc (move from peformance counter) not supported. |
|
|
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 |
|
 |
pixel
Joined: 30 Jan 2004 Posts: 791
|
Posted: Sat Nov 20, 2004 11:52 pm Post subject: |
|
|
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 |
|
 |
mrbrown
Joined: 17 Jan 2004 Posts: 1536
|
Posted: Sun Nov 21, 2004 1:12 am Post subject: |
|
|
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 |
|
 |
|
|
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
|