From a04e6d3c5b35dba6494729878a4aa0897ae1183e Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Wed, 20 Mar 2024 12:53:35 +0100 Subject: [PATCH] fixes TGCP settings in coremark port --- bare-metal-bsp | 2 +- benchmarks/coremark/tgc/core_portme.mak | 2 +- benchmarks/coremark/tgc/ee_printf.c | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/bare-metal-bsp b/bare-metal-bsp index d530473..4d25972 160000 --- a/bare-metal-bsp +++ b/bare-metal-bsp @@ -1 +1 @@ -Subproject commit d5304739fa8db6a3c16e417c9bc15b6fad749136 +Subproject commit 4d25972e4dd8f0053cc4fbd88be1b85f4b869cae diff --git a/benchmarks/coremark/tgc/core_portme.mak b/benchmarks/coremark/tgc/core_portme.mak index 80032cc..a0b9726 100755 --- a/benchmarks/coremark/tgc/core_portme.mak +++ b/benchmarks/coremark/tgc/core_portme.mak @@ -42,7 +42,7 @@ AS = $(TRIPLET)-as # Flag : CFLAGS # Use this flag to define compiler options. Note, you can add compiler options from the command line using XCFLAGS="other flags" PORT_CFLAGS = -march=$(RISCV_ARCH) -mabi=$(RISCV_ABI) -O3 -DCLOCKS_PER_SEC=10000000 -nostdlib -nostartfiles -nodefaultlibs \ - -funroll-loops -fpeel-loops -fgcse-sm -fgcse-las -flto -g + -funroll-loops -fpeel-loops -fgcse-sm -fgcse-las -flto -g -DBOARD_$(BOARD) FLAGS_STR = "$(PORT_CFLAGS) $(XCFLAGS) $(XLFLAGS) $(LFLAGS_END)" CFLAGS = $(PORT_CFLAGS) -I$(PORT_DIR) -I. -DFLAGS_STR=\"$(FLAGS_STR)\" -I$(BSP_BASE)/env/$(BOARD) #Flag : LFLAGS_END diff --git a/benchmarks/coremark/tgc/ee_printf.c b/benchmarks/coremark/tgc/ee_printf.c index fc9e506..8f983b0 100644 --- a/benchmarks/coremark/tgc/ee_printf.c +++ b/benchmarks/coremark/tgc/ee_printf.c @@ -673,8 +673,6 @@ uart_send_char(char c) } #elif defined(BOARD_iss) *((uint32_t*) 0xFFFF0000) = c; -#elif defined(BOARD_TGCP) - //TODO: implement #else while (UART0_REG(UART_REG_TXFIFO) & 0x80000000) ; UART0_REG(UART_REG_TXFIFO) = c;