Commit 7b3772c0 authored by Christophe Leroy's avatar Christophe Leroy Committed by Greg Kroah-Hartman

powerpc/fsl: Fix the flush of branch predictor.

commit 27da80719ef132cf8c80eb406d5aeb37dddf78cc upstream.

The commit identified below adds MC_BTB_FLUSH macro only when
CONFIG_PPC_FSL_BOOK3E is defined. This results in the following error
on some configs (seen several times with kisskb randconfig_defconfig)

arch/powerpc/kernel/exceptions-64e.S:576: Error: Unrecognized opcode: `mc_btb_flush'
make[3]: *** [scripts/ arch/powerpc/kernel/exceptions-64e.o] Error 1
make[2]: *** [scripts/ arch/powerpc/kernel] Error 2
make[1]: *** [Makefile:1043: arch/powerpc] Error 2
make: *** [Makefile:152: sub-make] Error 2

This patch adds a blank definition of MC_BTB_FLUSH for other cases.

Fixes: 10c5e83afd4a ("powerpc/fsl: Flush the branch predictor at each kernel entry (64bit)")
Cc: Diana Craciun <>
Signed-off-by: default avatarChristophe Leroy <>
Reviewed-by: default avatarDaniel Axtens <>
Reviewed-by: default avatarDiana Craciun <>
Signed-off-by: default avatarMichael Ellerman <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 64a0f413
......@@ -348,6 +348,7 @@ ret_from_mc_except:
#define MC_BTB_FLUSH
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment