Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions examples/or1k/README.md
Original file line number Diff line number Diff line change
@@ -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"
```
28 changes: 28 additions & 0 deletions examples/or1k/boardsupport.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/* Copyright (C) 2017 Embecosm Limited and University of Bristol

Contributor Madhu Sudhanan <madhu2000u@gmail.com>

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 <support.h>

void
initialise_board ()
{

}

void __attribute__ ((noinline)) __attribute__ ((externally_visible))
start_trigger ()
{

}

void __attribute__ ((noinline)) __attribute__ ((externally_visible))
stop_trigger ()
{

}
10 changes: 10 additions & 0 deletions examples/or1k/boardsupport.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/* Copyright (C) 2017 Embecosm Limited and University of Bristol

Contributor Madhu Sudhanan <madhu2000u@gmail.com>

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