From 61cb90e97a6376a822756ea7b7f92fe933929d68 Mon Sep 17 00:00:00 2001 From: Denis Shienkov Date: Tue, 19 May 2020 14:39:52 +0300 Subject: [PATCH] ProjectExplorer: Add support for new M32C architecture This commit adds new ProjectExplorer::Abi::M32CArchitecture entry for the Renesas M32C architecture: * https://www.renesas.com/us/en/products/microcontrollers-microprocessors/m16c.html Change-Id: Ic6ab278e5da6992824a1427ac86a470768fcdb1f 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 9bd6baf4da5..ee310020f15 100644 --- a/src/plugins/projectexplorer/abi.cpp +++ b/src/plugins/projectexplorer/abi.cpp @@ -763,6 +763,8 @@ QString Abi::toString(const Architecture &a) return QLatin1String("78k"); case M68KArchitecture: return QLatin1String("m68k"); + case M32CArchitecture: + return QLatin1String("m32c"); case RiscVArchitecture: return QLatin1String("riscv"); case UnknownArchitecture: @@ -923,6 +925,8 @@ Abi::Architecture Abi::architectureFromString(const QStringRef &a) return K78Architecture; if (a == "m68k") return M68KArchitecture; + if (a == "m32c") + return M32CArchitecture; if (a == "riscv") return RiscVArchitecture; else if (a == "xtensa") diff --git a/src/plugins/projectexplorer/abi.h b/src/plugins/projectexplorer/abi.h index c94ee6081f8..ecbb1cbf88d 100644 --- a/src/plugins/projectexplorer/abi.h +++ b/src/plugins/projectexplorer/abi.h @@ -70,6 +70,7 @@ public: RxArchitecture, K78Architecture, M68KArchitecture, + M32CArchitecture, RiscVArchitecture, UnknownArchitecture };