Hook the ppc32 stuff up to the revised CPU detection machinery, and
add a bunch of code to detect what the cpu can do at startup by
catching SIGILLs.  Shame PPC doesn't offer any sane mechanism for
finding out what instruction subsets the CPU is capable of (a la
x86/amd64 cpuid).



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5108 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/m_transtab.c b/coregrind/m_transtab.c
index 9e99da3..bf57d09 100644
--- a/coregrind/m_transtab.c
+++ b/coregrind/m_transtab.c
@@ -737,8 +737,12 @@
 #  if defined(VGA_ppc32)
    Addr startaddr = (Addr) ptr;
    Addr endaddr   = startaddr + nbytes;
-   Addr cls       = VG_(cache_line_size_ppc32);
+   Addr cls;
    Addr addr;
+   VexArchInfo vai;
+
+   VG_(machine_get_VexArchInfo)( NULL, &vai );
+   cls = vai.ppc32_cache_line_szB;
 
    /* Stay sane .. */
    vg_assert(cls == 32 || cls == 128);