summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2020-05-26 16:04:33 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2020-05-27 07:28:24 +0000
commit2ab5e6260c40e671f4b576b2d7a639c347f8e543 (patch)
treea21ad2c3838309104159df090a8ac0f0d85b5493
parentb57ca3bcfacc3ad5bcce3729e1a69cc0eefcee94 (diff)
downloadqt-creator-2ab5e6260c40e671f4b576b2d7a639c347f8e543.tar.gz
ProjectExplorer: Add support for new CR16 architecture
This commit adds new ProjectExplorer::Abi::CR16Architecture entry for the National Semiconductor CR16 architecture: * https://en.wikipedia.org/wiki/CompactRISC Change-Id: I886422e3745cbaec177236c3a2bd90950633a925 Reviewed-by: hjk <hjk@qt.io>
-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 33272ed234..ddaacff054 100644
--- a/src/plugins/projectexplorer/abi.cpp
+++ b/src/plugins/projectexplorer/abi.cpp
@@ -775,6 +775,8 @@ QString Abi::toString(const Architecture &a)
return QLatin1String("m16c");
case R32CArchitecture:
return QLatin1String("r32c");
+ case CR16Architecture:
+ return QLatin1String("cr16");
case RiscVArchitecture:
return QLatin1String("riscv");
case UnknownArchitecture:
@@ -941,6 +943,8 @@ Abi::Architecture Abi::architectureFromString(const QStringRef &a)
return M16CArchitecture;
if (a == "r32c")
return R32CArchitecture;
+ if (a == "cr16")
+ return CR16Architecture;
if (a == "riscv")
return RiscVArchitecture;
else if (a == "xtensa")
diff --git a/src/plugins/projectexplorer/abi.h b/src/plugins/projectexplorer/abi.h
index 777b5c2cf0..5eec342368 100644
--- a/src/plugins/projectexplorer/abi.h
+++ b/src/plugins/projectexplorer/abi.h
@@ -73,6 +73,7 @@ public:
M32CArchitecture,
M16CArchitecture,
R32CArchitecture,
+ CR16Architecture,
RiscVArchitecture,
UnknownArchitecture
};