From 0a00e20cfe47153917b8d50f99c605cbe0119760 Mon Sep 17 00:00:00 2001 From: colin Date: Sun, 6 Mar 2022 04:21:41 +0000 Subject: [PATCH] Update riscv gcc version and usage. --- Cores-SweRV/demo/Readme.md | 8 ++++++-- Cores-SweRV/demo/jtag/Makefile | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Cores-SweRV/demo/Readme.md b/Cores-SweRV/demo/Readme.md index 704aeb6..fd4f34c 100644 --- a/Cores-SweRV/demo/Readme.md +++ b/Cores-SweRV/demo/Readme.md @@ -36,8 +36,12 @@ sudo make install * Opetion1 :https://github.com/riscv-collab/riscv-gnu-toolchain.git ```bash -./configure --prefix=/opt/riscv -make linux +sudo make clean +./configure --prefix=/opt/riscv # build 64bit +sudo make -j12 +sudo make clean +./configure --prefix=/opt/riscv --with-arch=rv32gc --with-abi=ilp32d +sudo make -j12 ``` * Opetion2 : diff --git a/Cores-SweRV/demo/jtag/Makefile b/Cores-SweRV/demo/jtag/Makefile index 3fd014f..1764da9 100644 --- a/Cores-SweRV/demo/jtag/Makefile +++ b/Cores-SweRV/demo/jtag/Makefile @@ -1,6 +1,6 @@ export RV_ROOT = ${PWD}/../.. -GCC_PREFIX = /opt/riscv/bin/riscv32-unknown-elf -GDB_PREFIX = /opt/riscv/bin/riscv32-unknown-elf-gdb +GCC_PREFIX = /opt/riscv/bin/riscv64-unknown-elf +GDB_PREFIX = /opt/riscv/bin/riscv64-unknown-elf-gdb TEST_CFLAGS = -g -O3 -funroll-all-loops