summaryrefslogtreecommitdiffstats
path: root/src/qtdiag
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2015-07-18 22:37:46 -0700
committerThiago Macieira <thiago.macieira@intel.com>2015-08-01 04:17:41 +0000
commita2dbd63a3b31bf99ed53e55e75219eee9b53f984 (patch)
tree0bbbc2470569a9b28f362473a6fb9c41325e71b6 /src/qtdiag
parent6e3375a9eb63383615536a3faae15102f93b451e (diff)
Update the processor feature reporting in qtdiag
Don't try to report on features from the wrong processor Change-Id: Ib306f8f647014b399b87ffff13f2426ce9047e98 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Diffstat (limited to 'src/qtdiag')
-rw-r--r--src/qtdiag/qtdiag.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qtdiag/qtdiag.cpp b/src/qtdiag/qtdiag.cpp
index d4e25759d..bc8ed32e8 100644
--- a/src/qtdiag/qtdiag.cpp
+++ b/src/qtdiag/qtdiag.cpp
@@ -225,6 +225,7 @@ QString qtDiag(unsigned flags)
<< " [" << QSysInfo::kernelType() << " version " << QSysInfo::kernelVersion() << "]\n";
str << "\nArchitecture: " << QSysInfo::currentCpuArchitecture() << "; features:";
+#if defined(Q_PROCESSOR_X86)
DUMP_CPU_FEATURE(SSE2, "SSE2");
DUMP_CPU_FEATURE(SSE3, "SSE3");
DUMP_CPU_FEATURE(SSSE3, "SSSE3");
@@ -234,9 +235,12 @@ QString qtDiag(unsigned flags)
DUMP_CPU_FEATURE(AVX2, "AVX2");
DUMP_CPU_FEATURE(RTM, "RTM");
DUMP_CPU_FEATURE(HLE, "HLE");
+#elif defined(Q_PROCESSOR_ARM)
DUMP_CPU_FEATURE(ARM_NEON, "Neon");
+#elif defined(Q_PROCESSOR_MIPS)
DUMP_CPU_FEATURE(DSP, "DSP");
DUMP_CPU_FEATURE(DSPR2, "DSPR2");
+#endif
str << '\n';
str << "\nLibrary info:\n";