We have a PPC P1014 based board that runs Linux 5.9 or 5.11 built with gcc 9.3.0. When building with gcc 10.2.0, the system does not start. Using a BDI3000, i trace the exception to the assembly instruction mtocrf i nthe function fdt_next_node: 03037bc: 7c 08 03 a6 mtlr r0 c03037c0: 83 e1 00 2c lwz r31,44(r1) c03037c4: 7d 90 81 20 mtocrf 8,r12 With gcc 9.3.0, the instructions is mtcrf. I read from the
https://www.nxp.com/files-static/32bit/doc/ref_manual/EREF_RM.pdf manual mtocrf can be an illegal instruction to some CPUs. Is there a way to prevent the compiler from using this newer instructions? Cheers