From 439f479c6ddad0033190151b020e11db7151c610 Mon Sep 17 00:00:00 2001 From: Denis Shienkov Date: Mon, 4 Nov 2019 22:40:11 +0300 Subject: ProjectExplorer: Add new RL78 architecture This architecture provided by Renesas: * https://en.wikipedia.org/wiki/RL78 ... and are used in the bare-metal programming. Change-Id: Iec56192e756aa475b1cdfce1aa1ff9c24feb00cd Reviewed-by: Christian Kandeler --- src/plugins/projectexplorer/abi.cpp | 10 ++++++++++ src/plugins/projectexplorer/abi.h | 1 + 2 files changed, 11 insertions(+) diff --git a/src/plugins/projectexplorer/abi.cpp b/src/plugins/projectexplorer/abi.cpp index 42a34bbcdc..a51d441ba4 100644 --- a/src/plugins/projectexplorer/abi.cpp +++ b/src/plugins/projectexplorer/abi.cpp @@ -497,6 +497,12 @@ Abi Abi::abiFromTargetTriplet(const QString &triple) flavor = GenericFlavor; format = ElfFormat; width = 16; + } else if (p == "rl78") { + arch = Rl78Architecture; + os = BareMetalOS; + flavor = GenericFlavor; + format = ElfFormat; + width = 16; } else if (p.startsWith("mips")) { arch = MipsArchitecture; width = p.contains("64") ? 64 : 32; @@ -705,6 +711,8 @@ QString Abi::toString(const Architecture &a) return QLatin1String("stm8"); case Msp430Architecture: return QLatin1String("msp430"); + case Rl78Architecture: + return QLatin1String("rl78"); case UnknownArchitecture: Q_FALLTHROUGH(); default: @@ -845,6 +853,8 @@ Abi::Architecture Abi::architectureFromString(const QStringRef &a) return Stm8Architecture; if (a == "msp430") return Msp430Architecture; + if (a == "rl78") + return Rl78Architecture; else if (a == "xtensa") return XtensaArchitecture; if (a == "asmjs") diff --git a/src/plugins/projectexplorer/abi.h b/src/plugins/projectexplorer/abi.h index 47605b10e6..517046ec3b 100644 --- a/src/plugins/projectexplorer/abi.h +++ b/src/plugins/projectexplorer/abi.h @@ -61,6 +61,7 @@ public: AsmJsArchitecture, Stm8Architecture, Msp430Architecture, + Rl78Architecture, UnknownArchitecture }; -- cgit v1.2.1