ProjectExplorer: Add support for new M68K architecture

This commit adds new ProjectExplorer::Abi::M68KArchitecture
entry for the M68K (aka new NXP ColdFire) architecture:

 * https://wiki.osdev.org/M68k_Overview
 * https://www.nxp.com/products/product-information/ip-block-licensing/coldfire-32-bit-processors:COLDFIRE-32-BIT-PROCESSORS

Change-Id: I84a70b2d127f207bdff5cd085890def1fe28b17d
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Denis Shienkov
2020-05-18 11:44:13 +03:00
parent c6007f5a2c
commit 9e1bcd443d
2 changed files with 5 additions and 0 deletions

View File

@@ -755,6 +755,8 @@ QString Abi::toString(const Architecture &a)
return QLatin1String("rx"); return QLatin1String("rx");
case K78Architecture: case K78Architecture:
return QLatin1String("78k"); return QLatin1String("78k");
case M68KArchitecture:
return QLatin1String("m68k");
case RiscVArchitecture: case RiscVArchitecture:
return QLatin1String("riscv"); return QLatin1String("riscv");
case UnknownArchitecture: case UnknownArchitecture:
@@ -913,6 +915,8 @@ Abi::Architecture Abi::architectureFromString(const QStringRef &a)
return RxArchitecture; return RxArchitecture;
if (a == "78k") if (a == "78k")
return K78Architecture; return K78Architecture;
if (a == "m68k")
return M68KArchitecture;
if (a == "riscv") if (a == "riscv")
return RiscVArchitecture; return RiscVArchitecture;
else if (a == "xtensa") else if (a == "xtensa")

View File

@@ -69,6 +69,7 @@ public:
Rh850Architecture, Rh850Architecture,
RxArchitecture, RxArchitecture,
K78Architecture, K78Architecture,
M68KArchitecture,
RiscVArchitecture, RiscVArchitecture,
UnknownArchitecture UnknownArchitecture
}; };