From a006b67f5d5bb888fa7ab8f951c7b0ab145f776d Mon Sep 17 00:00:00 2001 From: Bunnaroath Sou Date: Tue, 7 Apr 2020 19:22:39 -0700 Subject: [PATCH 1/3] Update software-interrupt for 5000 cycle count delay --- software/software-interrupt | 2 +- wit-manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/software/software-interrupt b/software/software-interrupt index b10a32d2b..b72fda554 160000 --- a/software/software-interrupt +++ b/software/software-interrupt @@ -1 +1 @@ -Subproject commit b10a32d2b079e8e454648bd605b49954ed0fd505 +Subproject commit b72fda55491be700009954eff9056f8a29a1bbac diff --git a/wit-manifest.json b/wit-manifest.json index 7ee3c5bd2..0d6f88813 100644 --- a/wit-manifest.json +++ b/wit-manifest.json @@ -145,7 +145,7 @@ "source": "git@github.com:sifive/example-sifive-welcome.git" }, { - "commit": "b10a32d2b079e8e454648bd605b49954ed0fd505", + "commit": "b72fda55491be700009954eff9056f8a29a1bbac", "name": "example-software-interrupt", "source": "git@github.com:sifive/example-software-interrupt.git" }, From cb642d4622dac39d693b9ba4cb949cbecaad7610 Mon Sep 17 00:00:00 2001 From: Bunnaroath Sou Date: Wed, 15 Apr 2020 12:42:42 -0700 Subject: [PATCH 2/3] Update dhrystone to use its own strcmp.S --- software/dhrystone | 2 +- wit-manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/software/dhrystone b/software/dhrystone index e3e7e91d4..0ddff533c 160000 --- a/software/dhrystone +++ b/software/dhrystone @@ -1 +1 @@ -Subproject commit e3e7e91d48ae15f4a8e395cf998b0abbf5b70542 +Subproject commit 0ddff533cc9052c524990d5ace4560372053314b diff --git a/wit-manifest.json b/wit-manifest.json index 0d6f88813..9af8744f8 100644 --- a/wit-manifest.json +++ b/wit-manifest.json @@ -40,7 +40,7 @@ "source": "git@github.com:sifive/esdk-settings-generator.git" }, { - "commit": "e3e7e91d48ae15f4a8e395cf998b0abbf5b70542", + "commit": "0ddff533cc9052c524990d5ace4560372053314b", "name": "benchmark-dhrystone", "source": "git@github.com:sifive/benchmark-dhrystone.git" }, From 3f28da0afdd20314d627a778730e88fa2f03d758 Mon Sep 17 00:00:00 2001 From: Bunnaroath Sou Date: Tue, 21 Apr 2020 15:34:35 -0700 Subject: [PATCH 3/3] Avoid an extra instruction at the top of a function --- scripts/standalone.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/standalone.mk b/scripts/standalone.mk index e384509c2..0fadde673 100644 --- a/scripts/standalone.mk +++ b/scripts/standalone.mk @@ -119,8 +119,13 @@ RISCV_CFLAGS += -march=$(RISCV_ARCH) -mabi=$(RISCV_ABI) -mcmodel=$(RISCV_CMOD RISCV_CXXFLAGS += -march=$(RISCV_ARCH) -mabi=$(RISCV_ABI) -mcmodel=$(RISCV_CMODEL) RISCV_ASFLAGS += -march=$(RISCV_ARCH) -mabi=$(RISCV_ABI) -mcmodel=$(RISCV_CMODEL) # Prune unused functions and data +ifeq ($(PROGRAM),dhrystone) +RISCV_CFLAGS += -fno-function-sections -fno-data-sections +RISCV_CXXFLAGS += -fno-function-sections -fno-data-sections +else RISCV_CFLAGS += -ffunction-sections -fdata-sections RISCV_CXXFLAGS += -ffunction-sections -fdata-sections +endif # Include the Metal headers RISCV_CCASFLAGS += -I$(abspath $(BSP_DIR)/install/include/) RISCV_CFLAGS += -I$(abspath $(BSP_DIR)/install/include/)