From 2ab5e6260c40e671f4b576b2d7a639c347f8e543 Mon Sep 17 00:00:00 2001 From: Denis Shienkov Date: Tue, 26 May 2020 16:04:33 +0300 Subject: ProjectExplorer: Add support for new CR16 architecture This commit adds new ProjectExplorer::Abi::CR16Architecture entry for the National Semiconductor CR16 architecture: * https://en.wikipedia.org/wiki/CompactRISC Change-Id: I886422e3745cbaec177236c3a2bd90950633a925 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 33272ed234..ddaacff054 100644 --- a/src/plugins/projectexplorer/abi.cpp +++ b/src/plugins/projectexplorer/abi.cpp @@ -775,6 +775,8 @@ QString Abi::toString(const Architecture &a) return QLatin1String("m16c"); case R32CArchitecture: return QLatin1String("r32c"); + case CR16Architecture: + return QLatin1String("cr16"); case RiscVArchitecture: return QLatin1String("riscv"); case UnknownArchitecture: @@ -941,6 +943,8 @@ Abi::Architecture Abi::architectureFromString(const QStringRef &a) return M16CArchitecture; if (a == "r32c") return R32CArchitecture; + if (a == "cr16") + return CR16Architecture; if (a == "riscv") return RiscVArchitecture; else if (a == "xtensa") diff --git a/src/plugins/projectexplorer/abi.h b/src/plugins/projectexplorer/abi.h index 777b5c2cf0..5eec342368 100644 --- a/src/plugins/projectexplorer/abi.h +++ b/src/plugins/projectexplorer/abi.h @@ -73,6 +73,7 @@ public: M32CArchitecture, M16CArchitecture, R32CArchitecture, + CR16Architecture, RiscVArchitecture, UnknownArchitecture }; -- cgit v1.2.1