blob: 4b033f7d9e38e4ba025c1b9ad22d1e8c009985f1 [file] [log] [blame]
Michal Simek5da048a2007-03-27 00:32:16 +02001#
Michal Simek91eeb802016-05-24 11:42:26 +02002# (C) Copyright 2007 - 2016 Michal Simek
Michal Simek5da048a2007-03-27 00:32:16 +02003#
Michal Simek91eeb802016-05-24 11:42:26 +02004# Michal SIMEK <monstr@monstr.eu>
Michal Simek5da048a2007-03-27 00:32:16 +02005#
Wolfgang Denk1a459662013-07-08 09:37:19 +02006# SPDX-License-Identifier: GPL-2.0+
Michal Simek76316a32007-03-11 13:42:58 +01007#
Michal Simek76316a32007-03-11 13:42:58 +01008
Michal Simek91eeb802016-05-24 11:42:26 +02009# USE_HW_MUL can be 0, 1, or 2, defining a hierarchy of HW Mul support.
10CPUFLAGS-$(subst 1,,$(CONFIG_XILINX_MICROBLAZE0_USE_HW_MUL)) += -mxl-multiply-high
11CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_HW_MUL) += -mno-xl-soft-mul
12CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_DIV) += -mno-xl-soft-div
13CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_BARREL) += -mxl-barrel-shift
14CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_PCMP_INSTR) += -mxl-pattern-compare
15
16PLATFORM_CPPFLAGS += $(CPUFLAGS-1) $(CPUFLAGS-2)