Error: unrecognized opcode: `mtdcr' and `mfdcr'
With gcc11.1 (but i suppose also other versions except maybe 8) is not possible to compile this kind of lines anymore:
asm volatile ("mtdcr %0, %1" :: "i" (reg), "r" (val))
If you try to download l2cache or sam460_setup from OS4 depot where the source code is available you will see that errors are raised.
The opcodes should be present in ./binutils/repo/opcodes/ppc-opc.c I've tried to use different kind of -mcpu but with same issue
I just encountered this now. Did you figure out how to fix this?
It is fixed in our adtools version. We have asked to push the code here in adtools but the patch has not been accepted yet
https://github.com/sba1/adtools/pull/164