From: Tom H. <to...@co...> - 2025-06-10 16:49:47
|
On 10/06/2025 00:30, John Reiser wrote: >> It looks like just about every platform except alpha is supported, so >> how much work is it to get a new platform supported (not sure how much >> needs to be added/modified)? > > Choose a supported $ARCH with 64-bit words and fixed-width instructions: > > $ grep -i arm64 $(find valgrind -name '*.[ch]') | wc -l > 5214 > > So that's an estimate of how much you have to add/modify. > Of course not all of it must be done "by hand", but still > there probably are a couple thousand lines of code. That's also a serious underestimate as there are whole files that are processor specific, like the basic CPU emulation: 595 VEX/priv/guest_amd64_defs.h 4938 VEX/priv/guest_amd64_helpers.c 32801 VEX/priv/guest_amd64_toIR.c 4344 VEX/priv/host_amd64_defs.c 875 VEX/priv/host_amd64_defs.h 5461 VEX/priv/host_amd64_isel.c 49014 total and OS interfaces: 319 coregrind/m_dispatch/dispatch-amd64-linux.S 606 coregrind/m_sigframe/sigframe-amd64-linux.c 253 coregrind/m_syswrap/syscall-amd64-linux.S 915 coregrind/m_syswrap/syswrap-amd64-linux.c 2093 total Tom -- Tom Hughes (to...@co...) http://compton.nu/ |