|
|
Re: receiving unrecognized opcode mfdcr/mtdcr
|
|
10/23/2007 9:14 AM
post2220
|
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 :-().
|
|
|
|
|