From 0a3925494a4a3a849ee5e15a6b48cf4e59979d83 Mon Sep 17 00:00:00 2001 From: Denis Shienkov Date: Mon, 18 May 2020 12:25:12 +0300 Subject: [PATCH] BareMetal: Add support for M68K architecture in GCC toolchain This commit adds support for the M68K atchitecture: * https://en.wikipedia.org/wiki/Motorola_68000_series using GCC toolchains. Tested auto-detection on Windows using the GCC v4.8.0 toolchain provided from the following URL: * https://gnutoolchains.com/m68k-elf/ Change-Id: I5f1e36de240f3f53b54e0e6a8edb318746d345e7 Reviewed-by: hjk --- src/plugins/projectexplorer/abi.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/plugins/projectexplorer/abi.cpp b/src/plugins/projectexplorer/abi.cpp index 3144724f841..9b58cc34797 100644 --- a/src/plugins/projectexplorer/abi.cpp +++ b/src/plugins/projectexplorer/abi.cpp @@ -517,6 +517,12 @@ Abi Abi::abiFromTargetTriplet(const QString &triple) flavor = GenericFlavor; format = ElfFormat; width = 32; + } else if (p == "m68k") { + arch = M68KArchitecture; + os = BareMetalOS; + flavor = GenericFlavor; + format = ElfFormat; + width = 16; } else if (p.startsWith("riscv")) { arch = RiscVArchitecture; os = BareMetalOS;