-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation fault on RPi5 with cpu_core=auto #488
Comments
hmmm.. aarch64 is supported on Android though... maybe it's a build configuration issue? I have received reports of eerily similar issues on Nintendo Switch. What's funny about Switch though is that it is possible to run Android on Switch and then the aarch64 Android core runs perfectly. |
Thanks for the reply! I used the lakka scripts to build the core using docker, the armv7 builds using the same method work without issues. If you want me to test some builds I will be happy to do it. The flags used to compile the core:
If you would like to compile the core using my scripts:
|
@schellingb after some searching, this might be an issue only on RPi5 due to this bug raspberrypi/bookworm-feedback#107, similar to: |
I can confirm that it works without issues if compiled with the flag:
|
* DOSBox Pure 0.9.9 * Fix issue schellingb/dosbox-pure#488 * Set compiler flags properly
* DOSBox Pure 0.9.9 * Fix issue schellingb/dosbox-pure#488 * Set compiler flags properly
Thanks for looking into this and finding a fix! PROCCPU := $(shell cat /proc/cpuinfo))
ifneq ($(and $(filter ARMv7,$(PROCCPU)),$(filter neon,$(PROCCPU))),)
CPUFLAGS := -marm -mcpu=cortex-a72 -mfpu=neon-fp-armv8 -mfloat-abi=hard -ffast-math to UNAMEM := $(shell uname -m))
ifeq ($(UNAMEM),aarch64)
CPUFLAGS := -DPAGESIZE=16384
else ifeq ($(UNAMEM), armv7l)
CPUFLAGS := -marm -mcpu=cortex-a72 -mfpu=neon-fp-armv8 -mfloat-abi=hard -ffast-math I only have a RPI4 but I have it running on a 64bit OS so I can try that on there and see if there's any issues. |
I don't think that it is needed for every aarch64 device. Even on rpi5 it works with the 4k page size if you set
This is how it was fixed in flycast and dosbox-core. |
Hi, when running dosbox-pure on an RPi5 device with
dosbox_pure_cpu_core=auto
, I get a segmentation fault error. Switching to cpu_core=normal fixes the issue.My guess is that with the option set to auto, the core uses dynamic recompiler which is not supported on aarch64 (?).
The text was updated successfully, but these errors were encountered: