]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Handle ppc32/64 VRSAVE accesses.
authorJulian Seward <jseward@acm.org>
Tue, 21 Oct 2008 23:10:18 +0000 (23:10 +0000)
committerJulian Seward <jseward@acm.org>
Tue, 21 Oct 2008 23:10:18 +0000 (23:10 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8688

exp-ptrcheck/h_main.c

index db25fc7498b3092e5b9a005f49566a4470953b28..de813929768e077af14942ea3c8946620bb3e954 100644 (file)
@@ -1641,6 +1641,9 @@ static void get_IntRegInfo ( /*OUT*/IntRegInfo* iii, Int offset, Int szB )
    if (o == GOF(VR30) && sz == 16) goto none;
    if (o == GOF(VR31) && sz == 16) goto none;
 
+   /* Altivec admin related */
+   if (o == GOF(VRSAVE) && is4) goto none;
+
    VG_(printf)("get_IntRegInfo(ppc32):failing on (%d,%d)\n", o, sz);
    tl_assert(0);
 #  undef GOF
@@ -1802,6 +1805,9 @@ static void get_IntRegInfo ( /*OUT*/IntRegInfo* iii, Int offset, Int szB )
    if (o == GOF(VR30) && sz == 16) goto none;
    if (o == GOF(VR31) && sz == 16) goto none;
 
+   /* Altivec admin related */
+   if (o == GOF(VRSAVE) && is4) goto none;
+
    VG_(printf)("get_IntRegInfo(ppc64):failing on (%d,%d)\n", o, sz);
    tl_assert(0);
 #  undef GOF