irixxxx / picodrive

Fast MegaDrive/MegaCD/32X emulator
Other
52 stars 24 forks source link

drc: align tcache_default to 64k on arm #117

Closed notaz closed 6 months ago

notaz commented 6 months ago

Newer arm64 hw supports 64k pages, and recent Linux distros provide kernel packages like linux-image-generic-64k (can be used on r-pi4 with Ubuntu for example). It affects 32bit mode also, so assume that an arm32 binary compiled for vfp may be used on such kernel.

Without this mprotect() fails to set exec permission because of bad alignment.