aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/abi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/projectexplorer/abi.cpp')
-rw-r--r--src/plugins/projectexplorer/abi.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/projectexplorer/abi.cpp b/src/plugins/projectexplorer/abi.cpp
index 10134096d9..7c61260b54 100644
--- a/src/plugins/projectexplorer/abi.cpp
+++ b/src/plugins/projectexplorer/abi.cpp
@@ -360,9 +360,11 @@ static Abis abiOf(const QByteArray &data)
case 3: // EM_386
result.append(Abi(Abi::X86Architecture, os, flavor, Abi::ElfFormat, 32));
break;
- case 8: // EM_MIPS
- result.append(Abi(Abi::MipsArchitecture, os, flavor, Abi::ElfFormat, 32));
+ case 8: { // EM_MIPS
+ const int width = getUint8(data, 4) == 2 ? 64 : 32;
+ result.append(Abi(Abi::MipsArchitecture, os, flavor, Abi::ElfFormat, width));
break;
+ }
case 20: // EM_PPC
result.append(Abi(Abi::PowerPCArchitecture, os, flavor, Abi::ElfFormat, 32));
break;