This patch fixes the usage of wrong compiler flags when using basic FPU in MicroBlaze. The sqrt and convert functions are only supported by extended FPU.
Signed-off-by: Sebastian Schau <[email protected]> --- rules/pre/Machine.make | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/rules/pre/Machine.make b/rules/pre/Machine.make index 480c1eb..c0419c3 100644 --- a/rules/pre/Machine.make +++ b/rules/pre/Machine.make @@ -53,9 +53,10 @@ ifdef PTXCONF_ARCH_MICROBLAZE CPUFLAGS-$(PTXCONF_XILINX_MICROBLAZE0_USE_PCMP_INSTR) += -mxl-pattern-compare ifdef PTXCONF_HAS_HARDFLOAT + # XILINX_MICROBLAZE0_USE_FPU can be 0 (NONE), 1 (BASIC), or 2 (EXTENDED) CPUFLAGS-$(PTXCONF_XILINX_MICROBLAZE0_USE_FPU) += -mhard-float - CPUFLAGS-$(PTXCONF_XILINX_MICROBLAZE0_USE_FPU) += -mxl-float-convert - CPUFLAGS-$(PTXCONF_XILINX_MICROBLAZE0_USE_FPU) += -mxl-float-sqrt + CPUFLAGS-$(subst 1,,$(PTXCONF_XILINX_MICROBLAZE0_USE_FPU)) += -mxl-float-convert + CPUFLAGS-$(subst 1,,$(PTXCONF_XILINX_MICROBLAZE0_USE_FPU)) += -mxl-float-sqrt endif CPUFLAGS-1 += -mcpu=v$(CPU_VER) -- 1.7.0.4 -- ptxdist mailing list [email protected]
