mips: adding MIPS64LE support to Valgrind

Necessary changes to Valgrind to support MIPS64LE on Linux.
Minor cleanup/style changes embedded in the patch as well.
The change corresponds to r2687 in VEX.
Patch written by Dejan Jevtic and Petar Jovanovic.

More information about this issue:
https://bugs.kde.org/show_bug.cgi?id=313267


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13292 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/tests/arch_test.c b/tests/arch_test.c
index b3740b5..849af6e 100644
--- a/tests/arch_test.c
+++ b/tests/arch_test.c
@@ -30,6 +30,7 @@
    "arm",
    "s390x",
    "mips32",
+   "mips64",
    NULL
 };
 
@@ -62,6 +63,9 @@
 #elif defined(VGP_mips32_linux)
    if ( 0 == strcmp( arch, "mips32" ) ) return True;
 
+#elif defined(VGP_mips64_linux)
+   if ( 0 == strcmp( arch, "mips64" ) ) return True;
+
 #else
 #  error Unknown platform
 #endif   // VGP_*
diff --git a/tests/platform_test b/tests/platform_test
index 400fd37..43275c8 100644
--- a/tests/platform_test
+++ b/tests/platform_test
@@ -13,7 +13,7 @@
 all_platforms=
 all_platforms="$all_platforms x86-linux amd64-linux ppc32-linux ppc64-linux"
 all_platforms="$all_platforms arm-linux"
-all_platforms="$all_platforms s390x-linux mips32-linux"
+all_platforms="$all_platforms s390x-linux mips32-linux mips64-linux"
 all_platforms="$all_platforms x86-darwin amd64-darwin"
 
 if [ $# -ne 2 ] ; then