Moved it to mupen64plus-core because it is my main concern here. There are 
bigger concerns (rsp+video plugins) for big endian architectures but we not 
talking about them here.

On Thursday, 9 April 2026 08:56:11 CEST Paul Gevers wrote:
> Does it make sense to build for arm64 (and maybe armhf) too? I verified 
> that the build at least succeeds on arm64, but I didn't perform any 
> further testing.

Not to say yea or nay - just to sync up first:

I think there was already a bug in the past to build it on more architectures. 
Since I don't have the means to test it on these architectures (and some of 
the code is not 100% portable), I wanted someone to test it on these 
architectures and take of them in case there are problems reported - which 
didn't happen. At that time, both armhf+arm64 were also not officially 
supported. I have now looked in the 2.6.0 makefile and got the ARM portion:


ifneq ("$(filter arm%,$(HOST_CPU))","")
  ifeq ("$(filter arm%b,$(HOST_CPU))","")
    CPU := ARM
    PIC ?= 1
    NEW_DYNAREC := 1
    ifneq ("$(filter arm64,$(HOST_CPU))","")
      ARCH_DETECTED := 64BITS
      $(warning Architecture "$(HOST_CPU)" not officially supported.)
    else
      ARCH_DETECTED := 32BITS
      CFLAGS += -marm
      ifneq ("$(filter armv5%,$(HOST_CPU))","")
          CFLAGS += -DARMv5_ONLY
          $(warning Using ARMv5_ONLY)
      endif
      ifneq ("$(filter armv6%,$(HOST_CPU))","")
          CFLAGS += -DARMv5_ONLY
          $(warning Using ARMv5_ONLY)
      endif
      ifeq ($(NEON), 1)
          CFLAGS += -mfpu=neon -mfloat-abi=hard
      else
        ifeq ($(VFP_HARD), 1)
          CFLAGS += -mfpu=vfp -mfloat-abi=hard
        else
          CFLAGS += -mfpu=vfp -mfloat-abi=softfp
        endif
      endif
    endif
  endif
endif

So arm64 is still not officially supported - also not in the current git 
version. The 32 bit ones are not marked like this and could in theory be build 
as an officially supported target. Since you need to manually set VFP_HARD/
NEON, do you know the debian armhf configuration? I think it was ARMv7, no-
NEON requirements and VFP_HARD. But I would need to search around to double
check this.

Of course, we can still enable arm64 builds. Upstream is not officially 
supporting them, so we need someone on the Debian side to take care of it.

Kind regards,
        Sven

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to