From b7ec0fbf0865292094f61d37a52da99cf9757a6f Mon Sep 17 00:00:00 2001 From: Denis Shienkov Date: Tue, 26 May 2020 15:43:20 +0300 Subject: ProjectExplorer: Add support for new M16C architecture This commit adds new ProjectExplorer::Abi::M16CArchitecture entry for the Renesas M16C architecture: * https://www.renesas.com/us/en/products/microcontrollers-microprocessors/m16c.html Change-Id: Id476cfefbfd971b31cb307d51b6980a29684191d Reviewed-by: hjk --- src/plugins/projectexplorer/abi.cpp | 4 ++++ src/plugins/projectexplorer/abi.h | 1 + 2 files changed, 5 insertions(+) (limited to 'src/plugins/projectexplorer') diff --git a/src/plugins/projectexplorer/abi.cpp b/src/plugins/projectexplorer/abi.cpp index 131c739bbd..40960bc234 100644 --- a/src/plugins/projectexplorer/abi.cpp +++ b/src/plugins/projectexplorer/abi.cpp @@ -771,6 +771,8 @@ QString Abi::toString(const Architecture &a) return QLatin1String("m68k"); case M32CArchitecture: return QLatin1String("m32c"); + case M16CArchitecture: + return QLatin1String("m16c"); case RiscVArchitecture: return QLatin1String("riscv"); case UnknownArchitecture: @@ -933,6 +935,8 @@ Abi::Architecture Abi::architectureFromString(const QStringRef &a) return M68KArchitecture; if (a == "m32c") return M32CArchitecture; + if (a == "m16c") + return M16CArchitecture; if (a == "riscv") return RiscVArchitecture; else if (a == "xtensa") diff --git a/src/plugins/projectexplorer/abi.h b/src/plugins/projectexplorer/abi.h index ecbb1cbf88..a70c045ed4 100644 --- a/src/plugins/projectexplorer/abi.h +++ b/src/plugins/projectexplorer/abi.h @@ -71,6 +71,7 @@ public: K78Architecture, M68KArchitecture, M32CArchitecture, + M16CArchitecture, RiscVArchitecture, UnknownArchitecture }; -- cgit v1.2.3