|
From: <sv...@va...> - 2005-05-14 21:44:22
|
Author: njn
Date: 2005-05-14 22:44:20 +0100 (Sat, 14 May 2005)
New Revision: 3711
Added:
trunk/coregrind/pub_core_transtab_asm.h
Removed:
trunk/coregrind/core_asm.h
Modified:
trunk/coregrind/Makefile.am
trunk/coregrind/core.h
trunk/coregrind/m_dispatch/dispatch-amd64.S
trunk/coregrind/m_dispatch/dispatch-arm.S
trunk/coregrind/m_dispatch/dispatch-x86.S
trunk/coregrind/pub_core_debuglog.h
trunk/coregrind/pub_core_transtab.h
Log:
Created pub_core_transtab_asm.h, killing core_asm.h in the process.
Modified: trunk/coregrind/Makefile.am
=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/Makefile.am 2005-05-14 21:28:43 UTC (rev 3710)
+++ trunk/coregrind/Makefile.am 2005-05-14 21:44:20 UTC (rev 3711)
@@ -37,7 +37,6 @@
=20
noinst_HEADERS =3D \
core.h \
- core_asm.h \
pub_core_aspacemgr.h \
pub_core_debuglog.h \
pub_core_demangle.h \
@@ -55,6 +54,7 @@
pub_core_tooliface.h \
pub_core_translate.h \
pub_core_transtab.h \
+ pub_core_transtab_asm.h \
ume.h \
vg_symtab2.h \
vg_symtypes.h
Modified: trunk/coregrind/core.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/core.h 2005-05-14 21:28:43 UTC (rev 3710)
+++ trunk/coregrind/core.h 2005-05-14 21:44:20 UTC (rev 3711)
@@ -82,8 +82,8 @@
external tools.
*/
=20
-#include "core_asm.h" // asm stuff
#include "tool.h" // tool stuff
+#include "tool_asm.h" // XXX: temporary, for VG_() and friends
#include "core_arch.h" // arch-specific stuff, eg. x86/core_arch.h
=20
// Ugly: this is needed by linux/core_os.h
Deleted: trunk/coregrind/core_asm.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/core_asm.h 2005-05-14 21:28:43 UTC (rev 3710)
+++ trunk/coregrind/core_asm.h 2005-05-14 21:44:20 UTC (rev 3711)
@@ -1,50 +0,0 @@
-
-/*--------------------------------------------------------------------*/
-/*--- Asm-specific core stuff. core_asm.h ---*/
-/*--------------------------------------------------------------------*/
-
-/*
- This file is part of Valgrind, a dynamic binary instrumentation
- framework.
-
- Copyright (C) 2000-2005 Julian Seward=20
- js...@ac...
-
- This program is free software; you can redistribute it and/or
- modify it under the terms of the GNU General Public License as
- published by the Free Software Foundation; either version 2 of the
- License, or (at your option) any later version.
-
- This program is distributed in the hope that it will be useful, but
- WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
- 02111-1307, USA.
-
- The GNU General Public License is contained in the file COPYING.
-*/
-
-#ifndef __CORE_ASM_H
-#define __CORE_ASM_H
-
-#include "tool_asm.h" // tool asm stuff
-#include "core_arch_asm.h" // arch-specific asm stuff
-
-/* This file is included in all Valgrind source files, including
- assembly ones. */
-
-
-/* Constants for the fast translation lookup cache. */
-#define VG_TT_FAST_BITS 16
-#define VG_TT_FAST_SIZE (1 << VG_TT_FAST_BITS)
-#define VG_TT_FAST_MASK ((VG_TT_FAST_SIZE) - 1)
-
-#endif /* __CORE_ASM_H */
-
-/*--------------------------------------------------------------------*/
-/*--- end ---*/
-/*--------------------------------------------------------------------*/
Modified: trunk/coregrind/m_dispatch/dispatch-amd64.S
=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_dispatch/dispatch-amd64.S 2005-05-14 21:28:43 UTC (=
rev 3710)
+++ trunk/coregrind/m_dispatch/dispatch-amd64.S 2005-05-14 21:44:20 UTC (=
rev 3711)
@@ -31,6 +31,7 @@
=20
#include "core_asm.h"
#include "pub_core_dispatch_asm.h"
+#include "pub_core_transtab_asm.h"
#include "libvex_guest_offsets.h" /* for OFFSET_amd64_RIP */
=20
=20
Modified: trunk/coregrind/m_dispatch/dispatch-arm.S
=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_dispatch/dispatch-arm.S 2005-05-14 21:28:43 UTC (re=
v 3710)
+++ trunk/coregrind/m_dispatch/dispatch-arm.S 2005-05-14 21:44:20 UTC (re=
v 3711)
@@ -31,6 +31,7 @@
=20
#include "core_asm.h"
#include "pub_core_dispatch_asm.h"
+#include "pub_core_transtab_asm.h"
=20
.globl VG_(run_innerloop)
VG_(run_innerloop):
Modified: trunk/coregrind/m_dispatch/dispatch-x86.S
=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_dispatch/dispatch-x86.S 2005-05-14 21:28:43 UTC (re=
v 3710)
+++ trunk/coregrind/m_dispatch/dispatch-x86.S 2005-05-14 21:44:20 UTC (re=
v 3711)
@@ -31,6 +31,7 @@
=20
#include "core_asm.h"
#include "pub_core_dispatch_asm.h"
+#include "pub_core_transtab_asm.h"
#include "libvex_guest_offsets.h" /* for OFFSET_x86_EIP */
=20
=20
Modified: trunk/coregrind/pub_core_debuglog.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_debuglog.h 2005-05-14 21:28:43 UTC (rev 3710=
)
+++ trunk/coregrind/pub_core_debuglog.h 2005-05-14 21:44:20 UTC (rev 3711=
)
@@ -47,7 +47,7 @@
portable way to avoid using stdarg.h. */
#include <stdarg.h>
=20
-#include "core_asm.h" /* For definition of VG_ macro */
+#include "tool_asm.h" /* For definition of VG_ macro */
=20
/* There are no tool-visible exports from m_debuglog, hence no header
file for it. */
Modified: trunk/coregrind/pub_core_transtab.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_transtab.h 2005-05-14 21:28:43 UTC (rev 3710=
)
+++ trunk/coregrind/pub_core_transtab.h 2005-05-14 21:44:20 UTC (rev 3711=
)
@@ -37,6 +37,8 @@
// enabling fast look-ups of them.
//--------------------------------------------------------------------
=20
+#include "pub_core_transtab_asm.h"
+
/* The fast-cache for tt-lookup, and for finding counters. */
extern ULong* VG_(tt_fast) [VG_TT_FAST_SIZE];
extern UInt* VG_(tt_fastN)[VG_TT_FAST_SIZE];
Added: trunk/coregrind/pub_core_transtab_asm.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_transtab_asm.h 2005-05-14 21:28:43 UTC (rev =
3710)
+++ trunk/coregrind/pub_core_transtab_asm.h 2005-05-14 21:44:20 UTC (rev =
3711)
@@ -0,0 +1,43 @@
+
+/*--------------------------------------------------------------------*/
+/*--- Asm-only TransTab stuff. pub_core_transtab_asm.h ---*/
+/*--------------------------------------------------------------------*/
+
+/*
+ This file is part of Valgrind, a dynamic binary instrumentation
+ framework.
+
+ Copyright (C) 2000-2005 Julian Seward
+ js...@ac...
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2 of the
+ License, or (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ 02111-1307, USA.
+
+ The GNU General Public License is contained in the file COPYING.
+*/
+
+#ifndef __PUB_CORE_TRANSTAB_ASM_H
+#define __PUB_CORE_TRANSTAB_ASM_H
+
+/* Constants for the fast translation lookup cache. */
+#define VG_TT_FAST_BITS 16
+#define VG_TT_FAST_SIZE (1 << VG_TT_FAST_BITS)
+#define VG_TT_FAST_MASK ((VG_TT_FAST_SIZE) - 1)
+
+#endif // __PUB_CORE_TRANSTAB_ASM_H
+
+/*--------------------------------------------------------------------*/
+/*--- end ---*/
+/*--------------------------------------------------------------------*/
|