mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
Simplify the code to get the function entry + avoids too many casts
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14174
This commit is contained in:
parent
93ad03c5bb
commit
2e2cea2af6
@ -86,9 +86,10 @@ void * VG_NOTIFY_ON_LOAD(ifunc_wrapper) (void)
|
||||
#if defined(VGP_ppc64_linux)
|
||||
/* ppc64 uses function descriptors, so get the actual function entry
|
||||
address for the client request, but return the function descriptor
|
||||
from this function. */
|
||||
UWord *descr = (UWord*)(void*)result;
|
||||
fnentry = (Addr)(void*)(descr[0]);
|
||||
from this function.
|
||||
result points to the function descriptor, which starts with the
|
||||
function entry. */
|
||||
fnentry = *(Addr*)result;
|
||||
#else
|
||||
fnentry = result;
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user