This is an adaptation of the OpenRisc 1000 Core to run as a core model using the OpenCpuX API.
- CMake, version 3.6 or higher
gcc
andg++
libelf
-
Clone the repository and
cd
into the repository -
Initialize and update the submodules:
git submodule init git submodule update --init --recursive
-
Create a
BUILD
directorymkdir BUILD cd BUILD
-
Run CMake, then
make
to build both the test harness and the or1kiss core in x64 mode:CXX="g++ -m64" CC="gcc -m64" cmake .. # on bash set CXX="g++ -m64"; set CC="gcc -m64"; cmake .. # on csh make
-
The module should pass the regression tests are specified by the ocx test harness:
make test Running tests... Test project /localdev/tobies/ocx/ocx-or1kiss/BUILD Start 1: ocx-or1kiss 1/2 Test #1: ocx-or1kiss ...................... Passed 0.14 sec Start 2: smoke 2/2 Test #2: smoke ............................ Passed 0.01 sec 100% tests passed, 0 tests failed out of 2