aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2020-05-26 15:43:20 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2020-05-27 07:27:39 +0000
commitb7ec0fbf0865292094f61d37a52da99cf9757a6f (patch)
tree706071efe6f2311cdc0f35f504fe199dcf7d4907 /src/plugins/projectexplorer
parent91bf307084060a51bafe557e6341a209294a7695 (diff)
ProjectExplorer: Add support for new M16C architecture
This commit adds new ProjectExplorer::Abi::M16CArchitecture entry for the Renesas M16C architecture: * https://www.renesas.com/us/en/products/microcontrollers-microprocessors/m16c.html Change-Id: Id476cfefbfd971b31cb307d51b6980a29684191d Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer')
-rw-r--r--src/plugins/projectexplorer/abi.cpp4
-rw-r--r--src/plugins/projectexplorer/abi.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/abi.cpp b/src/plugins/projectexplorer/abi.cpp
index 131c739bbd..40960bc234 100644
--- a/src/plugins/projectexplorer/abi.cpp
+++ b/src/plugins/projectexplorer/abi.cpp
@@ -771,6 +771,8 @@ QString Abi::toString(const Architecture &a)
return QLatin1String("m68k");
case M32CArchitecture:
return QLatin1String("m32c");
+ case M16CArchitecture:
+ return QLatin1String("m16c");
case RiscVArchitecture:
return QLatin1String("riscv");
case UnknownArchitecture:
@@ -933,6 +935,8 @@ Abi::Architecture Abi::architectureFromString(const QStringRef &a)
return M68KArchitecture;
if (a == "m32c")
return M32CArchitecture;
+ if (a == "m16c")
+ return M16CArchitecture;
if (a == "riscv")
return RiscVArchitecture;
else if (a == "xtensa")
diff --git a/src/plugins/projectexplorer/abi.h b/src/plugins/projectexplorer/abi.h
index ecbb1cbf88..a70c045ed4 100644
--- a/src/plugins/projectexplorer/abi.h
+++ b/src/plugins/projectexplorer/abi.h
@@ -71,6 +71,7 @@ public:
K78Architecture,
M68KArchitecture,
M32CArchitecture,
+ M16CArchitecture,
RiscVArchitecture,
UnknownArchitecture
};