From: Vineet Gupta <vgu...@kernel.org> Inhibit ZOL generation by compiler if configuration states the lack of it. This is done before we remove the ZOL regs save/restore in entry code
Signed-off-by: Vineet Gupta <vgu...@kernel.org> --- arch/arc/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arc/Makefile b/arch/arc/Makefile index ec0f672bcee6..98a03c8d719c 100644 --- a/arch/arc/Makefile +++ b/arch/arc/Makefile @@ -44,6 +44,8 @@ cflags-y += -Wa,-I$(srctree)/arch/arc/include cflags-$(CONFIG_ARC_HAS_LLSC) += -mlock cflags-$(CONFIG_ARC_HAS_SWAPE) += -mswape +cflags-$(CONFIG_ARC_LACKS_ZOL) += -fno-branch-count-reg + ifdef CONFIG_ISA_ARCV2 ifdef CONFIG_ARC_USE_UNALIGNED_MEM_ACCESS -- 2.25.1 _______________________________________________ linux-snps-arc mailing list linux-snps-arc@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-snps-arc