diff options
author | Waldemar Brodkorb <wbrodkorb@conet.de> | 2018-05-31 01:04:17 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbrodkorb@conet.de> | 2018-06-10 06:35:18 +0200 |
commit | 9595fb8cd595028bece5174e7eddf660ae3dcc10 (patch) | |
tree | 56ffac7a96d15a2a9c825a4f96c3f1bcea7c4fa0 /extra/Configs | |
parent | df8caec1978cb5fe7d9a7e7ea9dd773605e89032 (diff) |
risc-v: initial 64 bit port, static only (no TLS/NPTL)
Only a simple hello world is tested in qemu system emulation.
Diffstat (limited to 'extra/Configs')
-rw-r--r-- | extra/Configs/Config.in | 8 | ||||
-rw-r--r-- | extra/Configs/Config.riscv64 | 15 |
2 files changed, 23 insertions, 0 deletions
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 |