diff --git a/examples/or1k/README.md b/examples/or1k/README.md new file mode 100644 index 00000000..d413a78b --- /dev/null +++ b/examples/or1k/README.md @@ -0,0 +1,7 @@ +# Configuration + +## Building + +```sh +scons --config-dir=examples/or1k/ user_libs=-lm cc=or1k-elf-gcc cflags="-c -Wall -O2 -ffunction-sections -mhard-mul -mhard-div -mhard-float -mdouble-float -mror" ldflags="-Wl,-gc-sections" +``` diff --git a/examples/or1k/boardsupport.c b/examples/or1k/boardsupport.c new file mode 100644 index 00000000..3f1b6b9b --- /dev/null +++ b/examples/or1k/boardsupport.c @@ -0,0 +1,28 @@ +/* Copyright (C) 2017 Embecosm Limited and University of Bristol + + Contributor Madhu Sudhanan + + This file is part of Embench and was formerly part of the Bristol/Embecosm + Embedded Benchmark Suite. + + SPDX-License-Identifier: GPL-3.0-or-later */ + +#include + +void +initialise_board () +{ + +} + +void __attribute__ ((noinline)) __attribute__ ((externally_visible)) +start_trigger () +{ + +} + +void __attribute__ ((noinline)) __attribute__ ((externally_visible)) +stop_trigger () +{ + +} diff --git a/examples/or1k/boardsupport.h b/examples/or1k/boardsupport.h new file mode 100644 index 00000000..6dfa63c2 --- /dev/null +++ b/examples/or1k/boardsupport.h @@ -0,0 +1,10 @@ +/* Copyright (C) 2017 Embecosm Limited and University of Bristol + + Contributor Madhu Sudhanan + + This file is part of Embench and was formerly part of the Bristol/Embecosm + Embedded Benchmark Suite. + + SPDX-License-Identifier: GPL-3.0-or-later */ + +#define CPU_MHZ 1