summaryrefslogtreecommitdiff
path: root/software/coremark
diff options
context:
space:
mode:
authorNathaniel Graff <nathaniel.graff@sifive.com>2019-03-07 09:29:05 -0800
committerNathaniel Graff <nathaniel.graff@sifive.com>2019-03-07 09:29:05 -0800
commitd9c3fba928162e7a89349f8b160eb479ad41cbea (patch)
tree258c5e97139d68ccb4a760d7ca0fffa231bf392c /software/coremark
parentf695df295da82c8ef801906ad8b00b0e8afa7502 (diff)
Remove legacy examples
Signed-off-by: Nathaniel Graff <nathaniel.graff@sifive.com>
Diffstat (limited to 'software/coremark')
-rw-r--r--software/coremark/.gitignore9
-rw-r--r--software/coremark/.unsupported-boards6
-rw-r--r--software/coremark/Makefile20
-rw-r--r--software/coremark/core_portme.c52
-rw-r--r--software/coremark/core_portme.h58
5 files changed, 0 insertions, 145 deletions
diff --git a/software/coremark/.gitignore b/software/coremark/.gitignore
deleted file mode 100644
index 6bd8438..0000000
--- a/software/coremark/.gitignore
+++ /dev/null
@@ -1,9 +0,0 @@
-/*.o
-/coremark
-/core_list_join.c
-/core_main.c
-/coremark.h
-/core_matrix.c
-/core_state.c
-/core_util.c
-/trans.c
diff --git a/software/coremark/.unsupported-boards b/software/coremark/.unsupported-boards
deleted file mode 100644
index 9221334..0000000
--- a/software/coremark/.unsupported-boards
+++ /dev/null
@@ -1,6 +0,0 @@
-# We don't deliver the full coremark sources for license reasons, so this can't
-# run in regression.
-freedom-e300-hifive1
-freedom-e300-arty
-coreplexip-e31-arty
-coreplexip-e51-arty
diff --git a/software/coremark/Makefile b/software/coremark/Makefile
deleted file mode 100644
index b57151e..0000000
--- a/software/coremark/Makefile
+++ /dev/null
@@ -1,20 +0,0 @@
-TARGET := coremark
-
-C_SRCS := \
- core_list_join.c \
- core_main.c \
- core_matrix.c \
- core_state.c \
- core_util.c \
- core_portme.c \
-
-HEADERS := \
- coremark.h \
- core_portme.h \
-
-CFLAGS := -O2 -fno-common -funroll-loops -finline-functions --param max-inline-insns-auto=20 -falign-functions=4 -falign-jumps=4 -falign-loops=4
-CFLAGS += -DFLAGS_STR=\""$(CFLAGS)"\"
-CFLAGS += -DITERATIONS=10000 -DPERFORMANCE_RUN=1
-
-BSP_BASE = ../../bsp
-include $(BSP_BASE)/env/common.mk
diff --git a/software/coremark/core_portme.c b/software/coremark/core_portme.c
deleted file mode 100644
index cbf1396..0000000
--- a/software/coremark/core_portme.c
+++ /dev/null
@@ -1,52 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include "coremark.h"
-#include "platform.h"
-#include "encoding.h"
-
-#if VALIDATION_RUN
- volatile ee_s32 seed1_volatile=0x3415;
- volatile ee_s32 seed2_volatile=0x3415;
- volatile ee_s32 seed3_volatile=0x66;
-#endif
-
-#if PERFORMANCE_RUN
- volatile ee_s32 seed1_volatile=0x0;
- volatile ee_s32 seed2_volatile=0x0;
- volatile ee_s32 seed3_volatile=0x66;
-#endif
-
-#if PROFILE_RUN
- volatile ee_s32 seed1_volatile=0x8;
- volatile ee_s32 seed2_volatile=0x8;
- volatile ee_s32 seed3_volatile=0x8;
-#endif
-
-volatile ee_s32 seed4_volatile=ITERATIONS;
-volatile ee_s32 seed5_volatile=0;
-
-static CORE_TICKS t0, t1;
-
-void start_time(void)
-{
- t0 = get_timer_value();
-}
-
-void stop_time(void)
-{
- t1 = get_timer_value();
-}
-
-CORE_TICKS get_time(void)
-{
- return t1 - t0;
-}
-
-secs_ret time_in_secs(CORE_TICKS ticks)
-{
- // scale timer down to avoid uint64_t -> double conversion in RV32
- int scale = 256;
- uint32_t delta = ticks / scale;
- uint32_t freq = get_timer_freq() / scale;
- return delta / (double)freq;
-}
diff --git a/software/coremark/core_portme.h b/software/coremark/core_portme.h
deleted file mode 100644
index 82298d6..0000000
--- a/software/coremark/core_portme.h
+++ /dev/null
@@ -1,58 +0,0 @@
-#ifndef FESDK_CORE_PORTME_H
-#define FESDK_CORE_PORTME_H
-
-#include <stdint.h>
-#include <stddef.h>
-
-#define HAS_FLOAT 1
-#define HAS_TIME_H 1
-#define USE_CLOCK 1
-#define HAS_STDIO 1
-#define HAS_PRINTF 1
-#define SEED_METHOD SEED_VOLATILE
-#define CORE_TICKS uint64_t
-#define ee_u8 uint8_t
-#define ee_u16 uint16_t
-#define ee_u32 uint32_t
-#define ee_s16 int16_t
-#define ee_s32 int32_t
-#define ee_ptr_int uintptr_t
-#define ee_size_t size_t
-#define COMPILER_FLAGS FLAGS_STR
-
-#define align_mem(x) (void *)(((ee_ptr_int)(x) + sizeof(ee_u32) - 1) & -sizeof(ee_u32))
-
-#ifdef __GNUC__
-# define COMPILER_VERSION "GCC"__VERSION__
-#else
-# error
-#endif
-
-#define MEM_METHOD MEM_STACK
-#define MEM_LOCATION "STACK"
-
-#define MAIN_HAS_NOARGC 0
-#define MAIN_HAS_NORETURN 0
-
-#define MULTITHREAD 1
-#define USE_PTHREAD 0
-#define USE_FORK 0
-#define USE_SOCKET 0
-
-#define default_num_contexts MULTITHREAD
-
-typedef int core_portable;
-static void portable_init(core_portable *p, int *argc, char *argv[]) {}
-static void portable_fini(core_portable *p) {}
-
-#if !defined(PROFILE_RUN) && !defined(PERFORMANCE_RUN) && !defined(VALIDATION_RUN)
-#if (TOTAL_DATA_SIZE==1200)
-#define PROFILE_RUN 1
-#elif (TOTAL_DATA_SIZE==2000)
-#define PERFORMANCE_RUN 1
-#else
-#define VALIDATION_RUN 1
-#endif
-#endif
-
-#endif