memcheck: fix guest pc <-> host pc mapping on 64 bit arch
Currently -memcheck A and friends do not report guest PCs properly on 64-bit
hosts, because the code assumes host and guest pointer sizes match. As result,
memcheck can't figure out guest PC so it renders functionality virtually
worthless. This fix changes tpc2gpc from target_ulong to uintptr_t. This works
on both 32-bit and 64-bit hosts, as the type represents unsigned integer
matched to pointer on a given architecture.
Change-Id: Ie8515796c56ef1b3132d0b3b0dd2bee1d9ec072d
Signed-off-by: Andrey Petrov <andrey.petrov@gmail.com>
2 files changed