Update README.md

add how to compile cross compiler for riscv32
This commit is contained in:
Màrius Montón 2019-06-22 16:31:06 +02:00 committed by GitHub
parent f140f5118f
commit 45c1548971
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 0 deletions

View File

@ -22,6 +22,7 @@ Table of Contents
* [Memory Map](./README.md#memory-map)
* [TODO](./README.md#todo)
* [Compile](./README.md#compile)
* [Cross-compiler](./README.md#cross)
* [Docker container](./README.md#docker-container)
* [How to use Docker](./README.md#how-to-use-docker)
* [Test](./README.md#test)
@ -122,6 +123,19 @@ $ ./RISCV_TLM asm/BasicLoop.hex
-D loglevel: 3 for detailed (INFO) log, 0 to ERROR log level
-f filename .hex filename to use
## Cross-compiler
It is possible to use gcc for risc-v compiler. Follow the instructions (from https://github.com/riscv/riscv-gnu-toolchain):
~~~
$ git clone --recursive https://github.com/riscv/riscv-gnu-toolchain
$ cd riscv-gnu-toolchain
$ ./configure --prefix=/opt/riscv --with-arch=rv32gc --with-abi=ilp32d
$ make
...
wait for long time ...
...
$ export PATH=$PATH:/opt/riscv/bin
~~~
## Docker container
There is a Docker container available with the latest release at https://hub.docker.com/r/mariusmm/riscv-tlm.