From: Andrew Waterman Date: Tue, 13 Dec 2016 06:51:27 +0000 (-0800) Subject: Pass newly updated -march, -mabi options to gcc X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6855cddc0ff7bcc06e71aa24a0417fc0656e75fb;p=riscv-tests.git Pass newly updated -march, -mabi options to gcc --- diff --git a/debug/targets.py b/debug/targets.py index 8c725c4..c431a67 100644 --- a/debug/targets.py +++ b/debug/targets.py @@ -39,9 +39,9 @@ class Target(object): prefix=binary_name + "_") binary_name = self.temporary_binary.name Target.temporary_files.append(self.temporary_binary) - march = "RV%dIMA" % self.xlen + march = "rv%dima" % self.xlen if self.use_fpu: - march += "FD" + march += "fd" testlib.compile(sources + ("programs/entry.S", "programs/init.c", "-I", "../env", diff --git a/isa/Makefile b/isa/Makefile index b8de54d..1afa4d6 100644 --- a/isa/Makefile +++ b/isa/Makefile @@ -68,22 +68,22 @@ tests += $$($(1)_tests) endef -$(eval $(call compile_template,rv32ui,-m32)) -$(eval $(call compile_template,rv32uc,-m32)) -$(eval $(call compile_template,rv32um,-m32)) -$(eval $(call compile_template,rv32ua,-m32)) -$(eval $(call compile_template,rv32uf,-m32)) -$(eval $(call compile_template,rv32si,-m32)) -$(eval $(call compile_template,rv32mi,-m32)) +$(eval $(call compile_template,rv32ui,-march=rv32g -mabi=ilp32)) +$(eval $(call compile_template,rv32uc,-march=rv32g -mabi=ilp32)) +$(eval $(call compile_template,rv32um,-march=rv32g -mabi=ilp32)) +$(eval $(call compile_template,rv32ua,-march=rv32g -mabi=ilp32)) +$(eval $(call compile_template,rv32uf,-march=rv32g -mabi=ilp32)) +$(eval $(call compile_template,rv32si,-march=rv32g -mabi=ilp32)) +$(eval $(call compile_template,rv32mi,-march=rv32g -mabi=ilp32)) ifeq ($(XLEN),64) -$(eval $(call compile_template,rv64ui)) -$(eval $(call compile_template,rv64uc)) -$(eval $(call compile_template,rv64um)) -$(eval $(call compile_template,rv64ua)) -$(eval $(call compile_template,rv64uf)) -$(eval $(call compile_template,rv64ud)) -$(eval $(call compile_template,rv64si)) -$(eval $(call compile_template,rv64mi)) +$(eval $(call compile_template,rv64ui,-march=rv64g -mabi=lp64)) +$(eval $(call compile_template,rv64uc,-march=rv64g -mabi=lp64)) +$(eval $(call compile_template,rv64um,-march=rv64g -mabi=lp64)) +$(eval $(call compile_template,rv64ua,-march=rv64g -mabi=lp64)) +$(eval $(call compile_template,rv64uf,-march=rv64g -mabi=lp64)) +$(eval $(call compile_template,rv64ud,-march=rv64g -mabi=lp64)) +$(eval $(call compile_template,rv64si,-march=rv64g -mabi=lp64)) +$(eval $(call compile_template,rv64mi,-march=rv64g -mabi=lp64)) endif tests_dump = $(addsuffix .dump, $(tests))