I am able to build following code with sde-GCC and that is working, but same thing if I build with mips-mti-elf-gcc is not working instead its through unrecognized opcode `mtc0 $0,$9′
please if someone know what going wrong please help me in correcting and/or fixing the above issue.
here is my code looks like
register unsigned __r;
asm volatile (“mfc0 %0,$12; nop; nop;”
: “=d” (__r));
val = __r;