]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
A small API change: pass both the guest and host word sizes to the
authorJulian Seward <jseward@acm.org>
Mon, 21 Mar 2005 00:54:33 +0000 (00:54 +0000)
committerJulian Seward <jseward@acm.org>
Mon, 21 Mar 2005 00:54:33 +0000 (00:54 +0000)
instrumentatation functions.

git-svn-id: svn://svn.valgrind.org/vex/trunk@1062

VEX/priv/main/vex_main.c
VEX/pub/libvex.h

index 7d79683076cf9c14071ea5dfae9c05383df63164..ea97c4c4be79b5894de78509982c022d6544b7e5 100644 (file)
@@ -184,8 +184,10 @@ VexTranslateResult LibVEX_Translate (
    /* OUT: how much of the output area is used. */
    Int*    host_bytes_used,
    /* IN: optionally, two instrumentation functions. */
-   IRBB*   (*instrument1) ( IRBB*, VexGuestLayout*, IRType hWordTy ),
-   IRBB*   (*instrument2) ( IRBB*, VexGuestLayout*, IRType hWordTy ),
+   IRBB*   (*instrument1) ( IRBB*, VexGuestLayout*, 
+                            IRType gWordTy, IRType hWordTy ),
+   IRBB*   (*instrument2) ( IRBB*, VexGuestLayout*, 
+                            IRType gWordTy, IRType hWordTy ),
    Bool    cleanup_after_instrumentation,
    /* IN: optionally, an access check function for guest code. */
    Bool    (*byte_accessible) ( Addr64 ),
@@ -431,9 +433,11 @@ VexTranslateResult LibVEX_Translate (
 
    /* Get the thing instrumented. */
    if (instrument1)
-      irbb = (*instrument1)(irbb, guest_layout, host_word_type);
+      irbb = (*instrument1)(irbb, guest_layout, 
+                                  guest_word_type, host_word_type);
    if (instrument2)
-      irbb = (*instrument2)(irbb, guest_layout, host_word_type);
+      irbb = (*instrument2)(irbb, guest_layout,
+                                  guest_word_type, host_word_type);
       
    if (vex_traceflags & VEX_TRACE_INST) {
       vex_printf("\n------------------------" 
index ffd10bf82a1866dd4fcf8b71afcff0eabdb8884e..9b25a7138216e62c11e144b9e41df81e61df1b2f 100644 (file)
@@ -263,8 +263,10 @@ VexTranslateResult LibVEX_Translate (
    /* OUT: how much of the output area is used. */
    Int*    host_bytes_used,
    /* IN: optionally, two instrumentation functions. */
-   IRBB*   (*instrument1) ( IRBB*, VexGuestLayout*, IRType hWordTy ),
-   IRBB*   (*instrument2) ( IRBB*, VexGuestLayout*, IRType hWordTy ),
+   IRBB*   (*instrument1) ( IRBB*, VexGuestLayout*, 
+                            IRType gWordTy, IRType hWordTy ),
+   IRBB*   (*instrument2) ( IRBB*, VexGuestLayout*, 
+                            IRType gWordTy, IRType hWordTy ),
    Bool    cleanup_after_instrumentation,
    /* IN: optionally, an access check function for guest code. */
    Bool    (*byte_accessible) ( Addr64 ),