]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Track changes to PPC naming convention - VEX r1504
authorCerion Armour-Brown <cerion@valgrind.org>
Fri, 23 Dec 2005 00:57:03 +0000 (00:57 +0000)
committerCerion Armour-Brown <cerion@valgrind.org>
Fri, 23 Dec 2005 00:57:03 +0000 (00:57 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5416

coregrind/m_machine.c
coregrind/m_transtab.c
coregrind/pub_core_machine.h

index a8987e7c6d9f0e0dcc150f16c93bf50f6ed0f265..482a1f3354d61cd5b73cc290988fc9432ef5e64e 100644 (file)
@@ -238,6 +238,12 @@ Bool VG_(thread_stack_next)(ThreadId* tid, Addr* stack_min, Addr* stack_max)
           then safe to use VG_(machine_get_VexArchInfo) 
                        and VG_(machine_ppc32_has_FP)
                        and VG_(machine_ppc32_has_VMX)
+   -------------
+   ppc64: initially:  call VG_(machine_get_hwcaps)
+                      call VG_(machine_ppc64_set_clszB)
+
+          then safe to use VG_(machine_get_VexArchInfo) 
+                       and VG_(machine_ppc64_has_VMX)
 
    VG_(machine_get_hwcaps) may use signals (although it attempts to
    leave signal state unchanged) and therefore should only be
@@ -456,11 +462,11 @@ void VG_(machine_ppc32_set_clszB)( Int szB )
    /* Either the value must not have been set yet (zero) or we can
       tolerate it being set to the same value multiple times, as the
       stack scanning logic in m_main is a bit stupid. */
-   vg_assert(vai.ppc32_cache_line_szB == 0
-             || vai.ppc32_cache_line_szB == szB);
+   vg_assert(vai.ppc_cache_line_szB == 0
+             || vai.ppc_cache_line_szB == szB);
 
    vg_assert(szB == 32 || szB == 128);
-   vai.ppc32_cache_line_szB = szB;
+   vai.ppc_cache_line_szB = szB;
 }
 #endif
 
@@ -474,11 +480,11 @@ void VG_(machine_ppc64_set_clszB)( Int szB )
    /* Either the value must not have been set yet (zero) or we can
       tolerate it being set to the same value multiple times, as the
       stack scanning logic in m_main is a bit stupid. */
-   vg_assert(vai.ppc32_cache_line_szB == 0
-             || vai.ppc32_cache_line_szB == szB);
+   vg_assert(vai.ppc_cache_line_szB == 0
+             || vai.ppc_cache_line_szB == szB);
 
    vg_assert(szB == 32 || szB == 128);
-   vai.ppc32_cache_line_szB = szB;
+   vai.ppc_cache_line_szB = szB;
 }
 #endif
 
index 5b6919441115e672be90e1318ba00add887251c7..31705a7674503cf74aecf18e5a10216b8db4b191 100644 (file)
@@ -31,7 +31,7 @@
 
 #include "pub_core_basics.h"
 #include "pub_core_debuglog.h"
-#include "pub_core_machine.h"    // ppc32: VG_(cache_line_size_ppc32)
+#include "pub_core_machine.h"    // For VG(machine_get_VexArchInfo)
 #include "pub_core_libcbase.h"
 #include "pub_core_libcassert.h"
 #include "pub_core_libcprint.h"
@@ -742,7 +742,7 @@ static void invalidate_icache ( void *ptr, Int nbytes )
    VexArchInfo vai;
 
    VG_(machine_get_VexArchInfo)( NULL, &vai );
-   cls = vai.ppc32_cache_line_szB;
+   cls = vai.ppc_cache_line_szB;
 
    /* Stay sane .. */
    vg_assert(cls == 32 || cls == 128);
index 1b682047624f328812de4acc8523152a211d38f9..656e0150a7c0e6f1c5b1ce94a70e47126e6625e6 100644 (file)
@@ -87,7 +87,7 @@
 //-------------------------------------------------------------
 /* Details about the capabilities of the underlying (host) CPU.  These
    details are acquired by (1) enquiring with the CPU at startup, or
-   (2) from the AT_SYSINFO entries the kernel gave us (ppc32 cache
+   (2) from the AT_SYSINFO entries the kernel gave us (ppc cache
    line size).  It's a bit nasty in the sense that there's no obvious
    way to stop uses of some of this info before it's ready to go.