Skip to content

aspeed_g5_defconfig "error: invalid operand for instruction" #1610

@nathanchance

Description

@nathanchance

After commit b9baf5c8c5c3 ("ARM: Spectre-BHB workaround"):

$ make -skj"$(nproc)" ARCH=arm LLVM=1 mrproper aspeed_g5_defconfig all
...
<instantiation>:1:21: error: invalid operand for instruction
mcr p15, 0, r0, c7, r5, 4
                    ^
<instantiation>:50:2: note: while in macro instantiation
 isb
 ^
arch/arm/kernel/entry-armv.S:1198:2: note: while in macro instantiation
 vector_stub fiq, 0x00000011, 4
 ^
...

Turns out that GNU as agrees with this as well, with a bit more of a helpful error message:

$ make -skj"$(nproc)" ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- mrproper aspeed_g5_defconfig all
...
arch/arm/mm/cache-v7.S: Assembler messages:
arch/arm/mm/cache-v7.S:42: Error: co-processor register expected -- `mcr p15,0,r0,c7,r5,4'
arch/arm/mm/cache-v7.S:69: Error: co-processor register expected -- `mcr p15,0,r0,c7,r5,4'
arch/arm/mm/cache-v7.S:142: Error: co-processor register expected -- `mcr p15,0,r0,c7,r5,4'
arch/arm/mm/cache-v7.S:179: Error: co-processor register expected -- `mcr p15,0,r0,c7,r5,4'
arch/arm/mm/cache-v7.S:312: Error: co-processor register expected -- `mcr p15,0,r0,c7,r5,4'
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    [ARCH] arm32This bug impacts ARCH=arm[BUG] linuxA bug that should be fixed in the mainline kernel.[FIXED][LINUX] 5.17This bug was fixed in Linux 5.17

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions