From 694580fa60f1e8c16b144fc677e1cb41c153f62e Mon Sep 17 00:00:00 2001 From: Paul Walmsley Date: Mon, 10 Sep 2018 13:28:56 -0700 Subject: config: arch: riscv: add initial 64-bit support Add initial rv64 support. Originally based on suggestions from Franz Flasch . Cc: Franz Flasch Signed-off-by: Paul Walmsley Signed-off-by: Paul Walmsley diff --git a/config/arch/riscv.in b/config/arch/riscv.in index 4efde97..109556a 100644 --- a/config/arch/riscv.in +++ b/config/arch/riscv.in @@ -4,9 +4,12 @@ ## depends on EXPERIMENTAL ## ## select ARCH_SUPPORTS_32 +## select ARCH_SUPPORTS_64 ## select ARCH_DEFAULT_32 +## select ARCH_SUPPORTS_BOTH_MMU ## select ARCH_SUPPORTS_WITH_ABI ## select ARCH_SUPPORTS_WITH_ARCH +## select ARCH_SUPPORTS_WITH_TUNE ## select GCC_REQUIRE_7_or_later ## help The RISC-V architecture, as defined by: -- cgit v0.10.2-6-g49f6 From 05d74f9d63aaeaa8afebf77f3dce64aa2a7fdde6 Mon Sep 17 00:00:00 2001 From: Paul Walmsley Date: Mon, 10 Sep 2018 18:04:03 -0700 Subject: riscv64: add rv64gc linux-gnu sample This sample works well for the SiFive U540 device (and similar). Thanks to Jim Wilson for his review, discovering several bugs (now fixed). Cc: Jim Wilson Signed-off-by: Paul Walmsley diff --git a/samples/riscv64-unknown-linux-gnu/crosstool.config b/samples/riscv64-unknown-linux-gnu/crosstool.config new file mode 100644 index 0000000..66c288d --- /dev/null +++ b/samples/riscv64-unknown-linux-gnu/crosstool.config @@ -0,0 +1,12 @@ +CT_EXPERIMENTAL=y +CT_ARCH_RISCV=y +# CT_DEMULTILIB is not set +CT_ARCH_USE_MMU=y +CT_ARCH_64=y +CT_KERNEL_LINUX=y +CT_DEBUG_GDB=y +# CT_GDB_CROSS_PYTHON is not set +# CT_GDB_GDBSERVER is not set +CT_ZLIB_NEEDED=y +CT_TARGET_VENDOR="unknown" +CT_ARCH_ARCH="rv64gc" diff --git a/samples/riscv64-unknown-linux-gnu/reported.by b/samples/riscv64-unknown-linux-gnu/reported.by new file mode 100644 index 0000000..9456e59 --- /dev/null +++ b/samples/riscv64-unknown-linux-gnu/reported.by @@ -0,0 +1,3 @@ +reporter_name="Paul Walmsley " +reporter_url="https://www.sifive.com/" +reporter_comment="" -- cgit v0.10.2-6-g49f6