Page 1 of 1

mfpc (move from peformance counter) not supported.

Posted: Sat Nov 20, 2004 11:41 pm
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

Posted: Sat Nov 20, 2004 11:52 pm
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 ;)

Posted: Sun Nov 21, 2004 1:12 am
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.