Update README.md
add how to compile cross compiler for riscv32
This commit is contained in:
parent
f140f5118f
commit
45c1548971
14
README.md
14
README.md
|
@ -22,6 +22,7 @@ Table of Contents
|
||||||
* [Memory Map](./README.md#memory-map)
|
* [Memory Map](./README.md#memory-map)
|
||||||
* [TODO](./README.md#todo)
|
* [TODO](./README.md#todo)
|
||||||
* [Compile](./README.md#compile)
|
* [Compile](./README.md#compile)
|
||||||
|
* [Cross-compiler](./README.md#cross)
|
||||||
* [Docker container](./README.md#docker-container)
|
* [Docker container](./README.md#docker-container)
|
||||||
* [How to use Docker](./README.md#how-to-use-docker)
|
* [How to use Docker](./README.md#how-to-use-docker)
|
||||||
* [Test](./README.md#test)
|
* [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
|
-D loglevel: 3 for detailed (INFO) log, 0 to ERROR log level
|
||||||
-f filename .hex filename to use
|
-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
|
## Docker container
|
||||||
|
|
||||||
There is a Docker container available with the latest release at https://hub.docker.com/r/mariusmm/riscv-tlm.
|
There is a Docker container available with the latest release at https://hub.docker.com/r/mariusmm/riscv-tlm.
|
||||||
|
|
Loading…
Reference in New Issue