Skip to content

Error: unrecognized opcode: mtdcr' and mfdcr' #125

@afxgroup

Description

@afxgroup

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions