mfpc (move from peformance counter) not supported.

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

Moderators: cheriff, Herben

Post Reply
User avatar
emoon
Posts: 91
Joined: Sun Jan 18, 2004 10:03 pm
Location: Stockholm, Sweden
Contact:

mfpc (move from peformance counter) not supported.

Post by emoon »

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
pixel
Posts: 791
Joined: Fri Jan 30, 2004 11:43 pm

Post by pixel »

Indeed.

Please, ooPo, could you check binutils, file opcodes/mips-opc.c, seek to the line 760

Code: Select all

{"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.
mrbrown
Site Admin
Posts: 1537
Joined: Sat Jan 17, 2004 11:24 am

Post by mrbrown »

Actually, insert a new line after that mfpc line and use:

Code: Select all

{"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..."
Post Reply