From ed9bf6f73e6d7339d5495503a7969e672b70b617 Mon Sep 17 00:00:00 2001 From: Hansung Kim Date: Sat, 7 Sep 2024 15:49:19 -0700 Subject: [PATCH] common.mk: Switch to -Os to prevent branch code duplication Prevents erroneous stalls at vx_bar. See comment in kernel.cpp --- tests/regression/common.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/regression/common.mk b/tests/regression/common.mk index 50efc499..f000dcf6 100644 --- a/tests/regression/common.mk +++ b/tests/regression/common.mk @@ -48,7 +48,7 @@ VX_CP = $(LLVM_VORTEX)/bin/llvm-objcopy #VX_DP = $(RISCV_TOOLCHAIN_PATH)/bin/$(RISCV_PREFIX)-objdump #VX_CP = $(RISCV_TOOLCHAIN_PATH)/bin/$(RISCV_PREFIX)-objcopy -VX_CFLAGS += -v -O3 -std=c++17 +VX_CFLAGS += -v -Os -std=c++17 VX_CFLAGS += -mcmodel=medany -fno-rtti -fno-exceptions -nostartfiles -fdata-sections -ffunction-sections # comment out below for regression/basic, which uses GCC that doesn't # understand these flags