adtools icon indicating copy to clipboard operation
adtools copied to clipboard

Error: unrecognized opcode: `mtdcr' and `mfdcr'

Open afxgroup opened this issue 3 years ago • 3 comments

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

afxgroup avatar Sep 16 '22 15:09 afxgroup

I just encountered this now. Did you figure out how to fix this?

ksdhans avatar Sep 12 '24 07:09 ksdhans

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

afxgroup avatar Sep 21 '24 12:09 afxgroup

https://github.com/sba1/adtools/pull/164

afxgroup avatar Sep 21 '24 12:09 afxgroup