From 9e1bcd443d416d92cc25110feb91f92dd8740494 Mon Sep 17 00:00:00 2001 From: Denis Shienkov Date: Mon, 18 May 2020 11:44:13 +0300 Subject: [PATCH] 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 --- 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 6a2d9979543..3144724f841 100644 --- a/src/plugins/projectexplorer/abi.cpp +++ b/src/plugins/projectexplorer/abi.cpp @@ -755,6 +755,8 @@ QString Abi::toString(const Architecture &a) return QLatin1String("rx"); case K78Architecture: return QLatin1String("78k"); + case M68KArchitecture: + return QLatin1String("m68k"); case RiscVArchitecture: return QLatin1String("riscv"); case UnknownArchitecture: @@ -913,6 +915,8 @@ Abi::Architecture Abi::architectureFromString(const QStringRef &a) return RxArchitecture; if (a == "78k") return K78Architecture; + if (a == "m68k") + return M68KArchitecture; if (a == "riscv") return RiscVArchitecture; else if (a == "xtensa") diff --git a/src/plugins/projectexplorer/abi.h b/src/plugins/projectexplorer/abi.h index 7a77fb04e24..c94ee6081f8 100644 --- a/src/plugins/projectexplorer/abi.h +++ b/src/plugins/projectexplorer/abi.h @@ -69,6 +69,7 @@ public: Rh850Architecture, RxArchitecture, K78Architecture, + M68KArchitecture, RiscVArchitecture, UnknownArchitecture };