From 54083f2c3e748843c7dc80063d15c007e523dfc8 Mon Sep 17 00:00:00 2001 From: Florian Krohm Date: Sun, 7 Oct 2012 21:58:07 +0000 Subject: [PATCH] Pass VexArchInfo to the instrumentation functions. git-svn-id: svn://svn.valgrind.org/vex/trunk@2549 --- VEX/priv/main_main.c | 2 ++ VEX/pub/libvex.h | 2 ++ 2 files changed, 4 insertions(+) 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* ); -- 2.47.2