Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - receiving unrecognized opcode mfdcr/mtdcr: (2 Items)
   
receiving unrecognized opcode mfdcr/mtdcr  
I've downloaded the latest version of tools (qnx632) and as soon as my interrupt controller is placed on the dcr 
interface of a ppc405, I'm receiving the following type of error:

Error: Unrecognized opcode: `mfdcr'

I thought mfdcr was a real op code for the ppc405.

qcc -V shows 2.95.3,gcc_ntoppcbe and 3.3.5,gcc_ntoppcbe.

I'm not sure how to display which version of gcc is ran when I compile my code.

Am I missing something?
Re: receiving unrecognized opcode mfdcr/mtdcr  
At some point in the past - I can't remember exactly which version - the PPC assembler was changed to only recognize 
instructions which were common across all PPC implementations by default. If you wanted to use an instruction that was 
specific to a particular processor, you had to tell the assembler via it's -m<cpu> option.

With qcc, specifying "-Wa,-m405" will get the right switch through. 

We also added support to our version of gas that would allow changing the supported CPU on the fly - see the /usr/
include/ppc/inline.h file and look at the get_dcr() and set_dcr() inlines for how it was done. The binutils maintainers 
put in equivalent support in a more recent version (but with a different syntax from ours :-().