From 9595fb8cd595028bece5174e7eddf660ae3dcc10 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 31 May 2018 01:04:17 +0200 Subject: risc-v: initial 64 bit port, static only (no TLS/NPTL) Only a simple hello world is tested in qemu system emulation. --- extra/Configs/Config.in | 8 ++++++++ extra/Configs/Config.riscv64 | 15 +++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 extra/Configs/Config.riscv64 (limited to 'extra/Configs') diff --git a/extra/Configs/Config.in b/extra/Configs/Config.in index 74439038f..9869bcf5c 100644 --- a/extra/Configs/Config.in +++ b/extra/Configs/Config.in @@ -37,6 +37,7 @@ choice default TARGET_nios2 if DESIRED_TARGET_ARCH = "nios2" default TARGET_or1k if DESIRED_TARGET_ARCH = "or1k" default TARGET_powerpc if DESIRED_TARGET_ARCH = "powerpc" + default TARGET_riscv64 if DESIRED_TARGET_ARCH = "riscv64" default TARGET_sh if DESIRED_TARGET_ARCH = "sh" default TARGET_sparc if DESIRED_TARGET_ARCH = "sparc" default TARGET_sparc64 if DESIRED_TARGET_ARCH = "sparc64" @@ -117,6 +118,9 @@ config TARGET_or1k config TARGET_powerpc bool "powerpc" +config TARGET_riscv64 + bool "riscv64" + config TARGET_sh bool "superh" @@ -224,6 +228,10 @@ if TARGET_powerpc source "extra/Configs/Config.powerpc" endif +if TARGET_riscv64 +source "extra/Configs/Config.riscv64" +endif + if TARGET_sh source "extra/Configs/Config.sh" endif diff --git a/extra/Configs/Config.riscv64 b/extra/Configs/Config.riscv64 new file mode 100644 index 000000000..7d0136a2b --- /dev/null +++ b/extra/Configs/Config.riscv64 @@ -0,0 +1,15 @@ +# +# For a description of the syntax of this configuration file, +# see extra/config/Kconfig-language.txt +# + +config TARGET_ARCH + string + default "riscv64" + +config FORCE_OPTIONS_FOR_ARCH + bool + default y + select ARCH_LITTLE_ENDIAN + select ARCH_HAS_MMU + select ARCH_HAS_NO_LDSO -- cgit v1.2.3