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
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