]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Oops: when adding translations to the auxiliary transtab, don't forget to
authorJulian Seward <jseward@acm.org>
Fri, 7 Apr 2006 12:47:05 +0000 (12:47 +0000)
committerJulian Seward <jseward@acm.org>
Fri, 7 Apr 2006 12:47:05 +0000 (12:47 +0000)
ensure D-I cache coherence.  Fixes SIGILLs in fn wrapping failures on low end
PowerPCs.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5835

coregrind/m_transtab.c

index 36c4abb4f020e60cf07f35a4c94f3d03d965f0af..a26076a9eb1e901aa1c246dc0dc44d10c8a0c65e 100644 (file)
@@ -1334,6 +1334,8 @@ void VG_(add_to_unredir_transtab)( VexGuestExtents* vge,
    for (j = 0; j < code_len; j++)
       dstP[j] = srcP[j];
 
+   invalidate_icache( dstP, code_len );
+
    unredir_tt[i].inUse = True;
    unredir_tt[i].vge   = *vge;
    unredir_tt[i].hcode = (Addr)dstP;