ppc64-linux fixes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5421 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/cachegrind/cg_main.c b/cachegrind/cg_main.c
index a1142ce..81cabb5 100644
--- a/cachegrind/cg_main.c
+++ b/cachegrind/cg_main.c
@@ -42,6 +42,7 @@
#include "pub_tool_oset.h"
#include "pub_tool_tooliface.h"
#include "pub_tool_clientstate.h"
+#include "pub_tool_machine.h" // VG_(fnptr_to_fnentry)
#include "cg_arch.h"
#include "cg_sim.c"
@@ -627,7 +628,9 @@
tl_assert(helperName);
tl_assert(helperAddr);
tl_assert(argv);
- di = unsafeIRDirty_0_N( regparms, helperName, helperAddr, argv);
+ di = unsafeIRDirty_0_N( regparms,
+ helperName, VG_(fnptr_to_fnentry)( helperAddr ),
+ argv );
addStmtToIRBB( cgs->bbOut, IRStmt_Dirty(di) );
}