|
From: <sv...@va...> - 2005-12-23 00:57:05
|
Author: cerion
Date: 2005-12-23 00:57:03 +0000 (Fri, 23 Dec 2005)
New Revision: 5416
Log:
Track changes to PPC naming convention - VEX r1504
Modified:
trunk/coregrind/m_machine.c
trunk/coregrind/m_transtab.c
trunk/coregrind/pub_core_machine.h
Modified: trunk/coregrind/m_machine.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_machine.c 2005-12-23 00:16:24 UTC (rev 5415)
+++ trunk/coregrind/m_machine.c 2005-12-23 00:57:03 UTC (rev 5416)
@@ -238,7 +238,13 @@
then safe to use VG_(machine_get_VexArchInfo)=20
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)
=20
+ then safe to use VG_(machine_get_VexArchInfo)=20
+ 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
called before m_main sets up the client's signal state.
@@ -456,11 +462,11 @@
/* 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 =3D=3D 0
- || vai.ppc32_cache_line_szB =3D=3D szB);
+ vg_assert(vai.ppc_cache_line_szB =3D=3D 0
+ || vai.ppc_cache_line_szB =3D=3D szB);
=20
vg_assert(szB =3D=3D 32 || szB =3D=3D 128);
- vai.ppc32_cache_line_szB =3D szB;
+ vai.ppc_cache_line_szB =3D szB;
}
#endif
=20
@@ -474,11 +480,11 @@
/* 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 =3D=3D 0
- || vai.ppc32_cache_line_szB =3D=3D szB);
+ vg_assert(vai.ppc_cache_line_szB =3D=3D 0
+ || vai.ppc_cache_line_szB =3D=3D szB);
=20
vg_assert(szB =3D=3D 32 || szB =3D=3D 128);
- vai.ppc32_cache_line_szB =3D szB;
+ vai.ppc_cache_line_szB =3D szB;
}
#endif
=20
Modified: trunk/coregrind/m_transtab.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_transtab.c 2005-12-23 00:16:24 UTC (rev 5415)
+++ trunk/coregrind/m_transtab.c 2005-12-23 00:57:03 UTC (rev 5416)
@@ -31,7 +31,7 @@
=20
#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 @@
VexArchInfo vai;
=20
VG_(machine_get_VexArchInfo)( NULL, &vai );
- cls =3D vai.ppc32_cache_line_szB;
+ cls =3D vai.ppc_cache_line_szB;
=20
/* Stay sane .. */
vg_assert(cls =3D=3D 32 || cls =3D=3D 128);
Modified: trunk/coregrind/pub_core_machine.h
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/pub_core_machine.h 2005-12-23 00:16:24 UTC (rev 5415)
+++ trunk/coregrind/pub_core_machine.h 2005-12-23 00:57:03 UTC (rev 5416)
@@ -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.
=20
|