From 005b943ad58bf735f84196cd454778110f7c7a74 Mon Sep 17 00:00:00 2001 From: Denis Shienkov Date: Thu, 14 May 2020 21:28:10 +0300 Subject: [PATCH] ProjectExplorer: Add support for new RISC-V architecture This commit adds new ProjectExplorer::Abi::RiscVArchitecture entry for the RISC-V architecture: * https://riscv.org/ Change-Id: I0cd73cca22a2852203372efbccc51d74581d8f50 Reviewed-by: hjk --- src/plugins/projectexplorer/abi.cpp | 4 ++++ src/plugins/projectexplorer/abi.h | 1 + 2 files changed, 5 insertions(+) diff --git a/src/plugins/projectexplorer/abi.cpp b/src/plugins/projectexplorer/abi.cpp index 73d78d8899e..e07e6fc0477 100644 --- a/src/plugins/projectexplorer/abi.cpp +++ b/src/plugins/projectexplorer/abi.cpp @@ -749,6 +749,8 @@ QString Abi::toString(const Architecture &a) return QLatin1String("rx"); case K78Architecture: return QLatin1String("78k"); + case RiscVArchitecture: + return QLatin1String("riscv"); case UnknownArchitecture: Q_FALLTHROUGH(); default: @@ -905,6 +907,8 @@ Abi::Architecture Abi::architectureFromString(const QStringRef &a) return RxArchitecture; if (a == "78k") return K78Architecture; + if (a == "riscv") + return RiscVArchitecture; else if (a == "xtensa") return XtensaArchitecture; if (a == "asmjs") diff --git a/src/plugins/projectexplorer/abi.h b/src/plugins/projectexplorer/abi.h index 334cc8242d1..7a77fb04e24 100644 --- a/src/plugins/projectexplorer/abi.h +++ b/src/plugins/projectexplorer/abi.h @@ -69,6 +69,7 @@ public: Rh850Architecture, RxArchitecture, K78Architecture, + RiscVArchitecture, UnknownArchitecture };