From: Florian Krohm Date: Sun, 7 Oct 2012 21:58:07 +0000 (+0000) Subject: Pass VexArchInfo to the instrumentation functions. X-Git-Tag: svn/VALGRIND_3_9_0^2~225 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54083f2c3e748843c7dc80063d15c007e523dfc8;p=thirdparty%2Fvalgrind.git Pass VexArchInfo to the instrumentation functions. git-svn-id: svn://svn.valgrind.org/vex/trunk@2549 --- diff --git a/VEX/priv/main_main.c b/VEX/priv/main_main.c index bb178b02e2..8d812586e2 100644 --- a/VEX/priv/main_main.c +++ b/VEX/priv/main_main.c @@ -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) { diff --git a/VEX/pub/libvex.h b/VEX/pub/libvex.h index ddbf87bf33..328da07ccc 100644 --- a/VEX/pub/libvex.h +++ b/VEX/pub/libvex.h @@ -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* );