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>
This commit is contained in:
Denis Shienkov
2019-11-04 22:40:11 +03:00
parent 10d3f639b3
commit 439f479c6d
2 changed files with 11 additions and 0 deletions

View File

@@ -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")