|
From: <sv...@va...> - 2006-05-22 00:09:55
|
Author: sewardj
Date: 2006-05-22 01:09:51 +0100 (Mon, 22 May 2006)
New Revision: 5918
Log:
Change ifdefs to select per-platform, not per-arch.
Modified:
trunk/callgrind/fn.c
Modified: trunk/callgrind/fn.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/callgrind/fn.c 2006-05-22 00:05:11 UTC (rev 5917)
+++ trunk/callgrind/fn.c 2006-05-22 00:09:51 UTC (rev 5918)
@@ -53,7 +53,7 @@
* We use a tuple sequence (offset,length) into the code array for t=
his
*/
=20
-#if defined(VGA_x86)
+#if defined(VGP_x86_linux)
/* Check ranges [0-11], [16-23] */
static int code_offsets[] =3D { 0, 12, 16, 8, 24, 0 };
static unsigned char code[] =3D {
@@ -61,7 +61,7 @@
/* 8*/ 0x44, 0x24, 0x0c, 0xe8, 0x70, 0x01, 0x00, 0x00,
/*16*/ 0x5a, 0x59, 0x87, 0x04, 0x24, 0xc2, 0x08, 0x00 };
#else
-#if defined(VGA_ppc32)
+#if defined(VGP_ppc32_linux)
static int code_offsets[] =3D {0, 65, 68, 64, 132, 0 };
static unsigned char code[] =3D {
/* 0*/ 0x94, 0x21, 0xff, 0xc0, 0x90, 0x01, 0x00, 0x0c,
@@ -82,7 +82,7 @@
/*120*/0x80, 0x01, 0x00, 0x0c, 0x38, 0x21, 0x00, 0x40,
/*128*/0x4e, 0x80, 0x04, 0x20 };
#else
-#if defined(VGA_amd64)
+#if defined(VGP_amd64_linux)
/* x86_64 */
static int code_offsets[] =3D {0, 62, 66, 44, 110, 0 };
static unsigned char code[] =3D {
@@ -99,7 +99,7 @@
/*94*/ 0x48, 0x8b, 0x4c, 0x24, 0x08, 0x48, 0x8b, 0x04, 0x24,
/*103*/0x48, 0x83, 0xc4, 0x48, 0x41, 0xff, 0xe3 };
#else
- /* Unknown architecture, no check is done */
+ /* Unknown platform, no check is done */
static int code_offsets[] =3D {0, 0 };
static unsigned char code[] =3D { 0 };
#endif
|