MIPS kernels support varying pagesizes - 4k, 16k, 64k. In addition to that, Cavium Octeon MIPS (cnMIPS) kernels support 8k and 32k pages. Valgrind for MIPS target currently requires to pass the page size of the target kernel as a configure time option (--with-pagesize). The page size is determined at runtime for PPC32/64 and ARM64 which have kernels that support multi-pagesize similar to MIPS. So, enable valgrind for MIPS target to determine page size at runtime. Reproducible: Always
Created attachment 90176 [details] accept 8k and 32k as valid page size
Created attachment 90177 [details] enable runtime determination of pagesize of MIPS target The patch can be applied after applying pagesize-8k-32k-support.patch To apply the patch, patch -p1 < multi-pagesize.patch The patch has been tested on MIPS64 kernels with 4k, 8k, 32k pages. However, it is not tested on MIPS32 target.
Created attachment 90178 [details] remove --with-pagesize config switch As page size is determined at runtime, --page-size configutation switch become obsolete. So, remove it. If the patches are accepted, README.mips will need an update regarding the --with-pagesize option. To apply the patch, patch -p1 < update-config-option.patch
Sounds like a not-bad plan. Petar, any comment?
Committed in r15813. Thank you.
Fixed in r15813. Closing it.