diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2012-07-20 21:03:56 +0800 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-09-01 15:28:24 +0200 |
commit | 08e92ba1e009d8b55e4ea44b4169ae80252b24f1 (patch) | |
tree | e63d10f54b6b8c0a54a6ddf7ec75fb0308ab1b8f /config.tests/arch | |
parent | 5f5e9b0e042b6957e826c862a1faa6687cfee671 (diff) |
mips: Autodetect MIPS DSP rev1 and rev2 instructionset
Not every MIPS SoC has the DSP extensions, auto-detect them by using
builtin GCC functions. Check for the DSP macros and add the result
for rev1 and rev2 to the cpufeatures.
Change-Id: I3d6c950f170f102514c43b349f9a23ee796d801a
Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'config.tests/arch')
-rw-r--r-- | config.tests/arch/arch.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/config.tests/arch/arch.cpp b/config.tests/arch/arch.cpp index e9530e63c6..c27e012925 100644 --- a/config.tests/arch/arch.cpp +++ b/config.tests/arch/arch.cpp @@ -229,7 +229,12 @@ const char msg2[] = "==Qt=magic=Qt== Sub-architecture:" #endif // -- MIPS -- -// Wikipedia says there are extensions, but GCC installs no headers +# if __mips_dsp +" dsp" +# endif +# if __mips_dspr2 +" dspr2" +# endif // -- POWER, PowerPC -- #ifdef __ALTIVEC__ |