]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
mips64: allow Loongson baseline
authorPetar Jovanovic <mips32r2@gmail.com>
Wed, 8 May 2019 15:17:25 +0000 (17:17 +0200)
committerPetar Jovanovic <mips32r2@gmail.com>
Wed, 8 May 2019 15:17:25 +0000 (17:17 +0200)
Allow Loongson baseline on MIPS64. This fixes KDE #406824.

NEWS
VEX/priv/main_main.c

diff --git a/NEWS b/NEWS
index ca7b0f49919df6b4fb5819f4a4af853ce3d6f915..e08defdfa412e1614e183e26c2419b815519734f 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -41,6 +41,7 @@ To see details of a given bug, visit
 where XXXXXX is the bug number as listed below.
 
 406561  mcinfcallWSRU gdbserver_test fails on ppc64
+406824  Unsupported baseline
 407218  Add support for the copy_file_range syscall
 407307  Intercept stpcpy also in ld.so for arm64
 n-i-bz  Fix minor one time leaks in dhat.
index c045887a7391c3506f563e2dd508c3a133439bb1..071bd45844a97cc0003151421309e61270a89f43 100644 (file)
@@ -2064,6 +2064,10 @@ static void check_hwcaps ( VexArch arch, UInt hwcaps )
             case VEX_PRID_COMP_CAVIUM:
             case VEX_PRID_COMP_NETLOGIC:
                return;
+            case VEX_PRID_COMP_LEGACY:
+               if (VEX_MIPS_PROC_ID(hwcaps) == VEX_PRID_IMP_LOONGSON_64)
+                  return;
+               /* fallthrough */
             default:
                invalid_hwcaps(arch, hwcaps, "Unsupported baseline\n");
          }