summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2019-11-04 22:40:11 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2019-11-05 13:01:50 +0000
commit439f479c6ddad0033190151b020e11db7151c610 (patch)
treeaa0c2cabf8f3fe343ee07ac7973d379f03601d4f
parent10d3f639b3c4bfe03f46a2d9fd143c978599a8fc (diff)
downloadqt-creator-439f479c6ddad0033190151b020e11db7151c610.tar.gz
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 <christian.kandeler@qt.io>
-rw-r--r--src/plugins/projectexplorer/abi.cpp10
-rw-r--r--src/plugins/projectexplorer/abi.h1
2 files changed, 11 insertions, 0 deletions
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
};