ProjectExplorer: Add support for new RISC-V architecture

This commit adds new ProjectExplorer::Abi::RiscVArchitecture
entry for the RISC-V architecture:

 * https://riscv.org/

Change-Id: I0cd73cca22a2852203372efbccc51d74581d8f50
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Denis Shienkov
2020-05-14 21:28:10 +03:00
parent 4ff5249b11
commit 005b943ad5
2 changed files with 5 additions and 0 deletions

View File

@@ -749,6 +749,8 @@ QString Abi::toString(const Architecture &a)
return QLatin1String("rx");
case K78Architecture:
return QLatin1String("78k");
case RiscVArchitecture:
return QLatin1String("riscv");
case UnknownArchitecture:
Q_FALLTHROUGH();
default:
@@ -905,6 +907,8 @@ Abi::Architecture Abi::architectureFromString(const QStringRef &a)
return RxArchitecture;
if (a == "78k")
return K78Architecture;
if (a == "riscv")
return RiscVArchitecture;
else if (a == "xtensa")
return XtensaArchitecture;
if (a == "asmjs")