From 936e53ceffec4465c8c2234cac7741b5114fecff Mon Sep 17 00:00:00 2001 From: Denis Shienkov Date: Wed, 24 Jul 2019 22:55:39 +0300 Subject: [PATCH] ProjectExplorer: Introduce new STM8 architecture This architecture is useful in programming of a bare-metal devices, based on 8-bit microcontrollers from STMicroelectronics: * https://en.wikipedia.org/wiki/STM8 Change-Id: Ie5d28a29aaa36e65a29bb96f988e6ee4327e1e9e Reviewed-by: Christian Kandeler --- 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 971636dc7b4..58b923d5198 100644 --- a/src/plugins/projectexplorer/abi.cpp +++ b/src/plugins/projectexplorer/abi.cpp @@ -691,6 +691,8 @@ QString Abi::toString(const Architecture &a) return QLatin1String("sh"); case AsmJsArchitecture: return QLatin1String("asmjs"); + case Stm8Architecture: + return QLatin1String("stm8"); case UnknownArchitecture: Q_FALLTHROUGH(); default: @@ -827,6 +829,8 @@ Abi::Architecture Abi::architectureFromString(const QStringRef &a) return ItaniumArchitecture; if (a == "sh") return ShArchitecture; + if (a == "stm8") + return Stm8Architecture; else if (a == "xtensa") return XtensaArchitecture; if (a == "asmjs") diff --git a/src/plugins/projectexplorer/abi.h b/src/plugins/projectexplorer/abi.h index 0a4e758d60e..032d6f3b899 100644 --- a/src/plugins/projectexplorer/abi.h +++ b/src/plugins/projectexplorer/abi.h @@ -59,6 +59,7 @@ public: XtensaArchitecture, Mcs51Architecture, AsmJsArchitecture, + Stm8Architecture, UnknownArchitecture };