]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Pass VexArchInfo to the instrumentation functions.
authorFlorian Krohm <florian@eich-krohm.de>
Sun, 7 Oct 2012 21:58:07 +0000 (21:58 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Sun, 7 Oct 2012 21:58:07 +0000 (21:58 +0000)
git-svn-id: svn://svn.valgrind.org/vex/trunk@2549

VEX/priv/main_main.c
VEX/pub/libvex.h

index bb178b02e208891d60548e7f37a61b5957e30c96..8d812586e2c80884494357966a136d0c6682ed73 100644 (file)
@@ -679,6 +679,7 @@ VexTranslateResult LibVEX_Translate ( VexTranslateArgs* vta )
       irsb = vta->instrument1(vta->callback_opaque,
                               irsb, guest_layout, 
                               vta->guest_extents,
+                              &vta->archinfo_host,
                               guest_word_type, host_word_type);
    vexAllocSanityCheck();
 
@@ -686,6 +687,7 @@ VexTranslateResult LibVEX_Translate ( VexTranslateArgs* vta )
       irsb = vta->instrument2(vta->callback_opaque,
                               irsb, guest_layout,
                               vta->guest_extents,
+                              &vta->archinfo_host,
                               guest_word_type, host_word_type);
       
    if (vex_traceflags & VEX_TRACE_INST) {
index ddbf87bf33f30d0aaf281abd05ec331702c7ef1d..328da07cccdfdb7ce6ac197d326a43df198c844c 100644 (file)
@@ -636,11 +636,13 @@ typedef
                                IRSB*, 
                                VexGuestLayout*, 
                                VexGuestExtents*,
+                               VexArchInfo*,
                                IRType gWordTy, IRType hWordTy );
       IRSB*   (*instrument2) ( /*callback_opaque*/void*, 
                                IRSB*, 
                                VexGuestLayout*, 
                                VexGuestExtents*,
+                               VexArchInfo*,
                                IRType gWordTy, IRType hWordTy );
 
       IRSB* (*finaltidy) ( IRSB* );