Page 1 of 1

Assembling COP0 instructions

Posted: Fri Mar 18, 2005 5:37 am
by Shazz
Simple question, ee-gcc refused the COP0 instruction MFPC (Move From Perf Counter) :

Code: Select all

ee-gcc -D_EE -O2 -G0 -Wall -Wno-unused -fno-builtin-printf -IC:/Dev-Cpp/projects/PS2/ps2Perf/ee/ps2Perf/include -IC:\PS2Dev2\ps2sdk/ee/include -IC:\PS2Dev2\ps2sdk/common/include -IC:/Dev-Cpp/projects/PS2/ps2Perf/ee/ps2Perf/include  -IC:/Dev-Cpp/projects/PS2/ps2Perf/ee/ps2Perf/include -I/usr/local/ps2dev/ee/lib/gcc-lib/ee/3.2.2/include -I/ee -c ps2Perf.c -o ps2Perf.o

/cygdrive/c/temp/ccB09aEp.s: Assembler messages:
/cygdrive/c/temp/ccB09aEp.s:146: Error: opcode not supported on this processor: r5900 (mips3) `mfpc $8,0'
/cygdrive/c/temp/ccB09aEp.s:390: Error: opcode not supported on this processor: r5900 (mips3) `mfpc $8,1'
Did I forget a CFLAG ?

Do we have some PS2SDK makefile template to build libs as we've got to build apps ?
Each time I'm reusing gskit one but....

Posted: Fri Mar 18, 2005 5:43 am
by pixel
mfpc should be supported. However, this was already reported and fixed in another thread. So, maybe you have to update your binutils, if your toolchain is that old.

Posted: Fri Mar 18, 2005 8:00 pm
by Shazz
arg.... do not work on many PCs :DDD

ok fixed... thanks pixel :D

Oh, so I have updated Ps2perf to be comaptible with last ps2sdk, remove sjpcm... do you think it's worth updating the cvs ?