Source: dosbox-x Severity: normal Tags: patch User: debian-loonga...@lists.debian.org Usertags: loong64 X-Debbugs-Cc: wuruil...@loongson.cn
Dear Maintainer, Please upgrade the software version or merge the attached patch to support loongarch architecture, the upstream PR link is as follows:https://github.com/joncampbell123/dosbox-x/pull/4891/files wuruilong -- System Information: Debian Release: trixie/sid APT prefers unreleased APT policy: (500, 'unreleased'), (500, 'unstable') Architecture: loong64 (loongarch64) Kernel: Linux 5.10.0-60.96.0.126.oe2203.loongarch64 (SMP w/32 CPU threads) Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: unable to detect
Description: <short summary of the patch> TODO: Put a short summary on the line above and replace this paragraph with a longer explanation of this change. Complete the meta-information with other relevant fields (see below for details). To make it easier, the information below has been extracted from the changelog. Adjust it or drop it. . dosbox-x (2024.03.01+dfsg-1) unstable; urgency=medium . * New upstream release. Author: Stephen Kitt <sk...@debian.org> --- The information above should follow the Patch Tagging Guidelines, please checkout https://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: (upstream|backport|vendor|other), (<patch-url>|commit:<commit-id>) Bug: <upstream-bugtracker-url> Bug-Debian: https://bugs.debian.org/<bugnumber> Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber> Forwarded: (no|not-needed|<patch-forwarded-url>) Applied-Upstream: <version>, (<commit-url>|commit:<commid-id>) Reviewed-By: <name and email of someone who approved/reviewed the patch> Last-Update: 2024-05-09 --- dosbox-x-2024.03.01+dfsg.orig/configure.ac +++ dosbox-x-2024.03.01+dfsg/configure.ac @@ -629,6 +629,12 @@ case "$host_cpu" in c_targetcpu="m68k" c_unalignedmemory=yes ;; + loongarch64*) + AC_DEFINE(C_TARGETCPU,LOONGARCH64) + AC_MSG_RESULT(LoongArch) + c_targetcpu="loongarch64" + c_unalignedmemory=yes + ;; armv7*) AC_DEFINE(C_TARGETCPU,ARMV7LE) AC_MSG_RESULT(ARMv7 Little Endian) @@ -870,6 +876,10 @@ if test x$enable_mt32 = xyes ; then AC_MSG_RESULT(yes) AC_DEFINE(C_MT32,1) ;; + loongarch64) + AC_MSG_RESULT(yes) + AC_DEFINE(C_MT32,1) + ;; *) enable_mt32=no AC_MSG_RESULT(no) --- dosbox-x-2024.03.01+dfsg.orig/src/libs/libchdr/lzma/CpuArch.h +++ dosbox-x-2024.03.01+dfsg/src/libs/libchdr/lzma/CpuArch.h @@ -82,6 +82,10 @@ MY_CPU_LE_UNALIGN means that CPU is LITT /* #define MY_CPU_32BIT */ #endif +#if defined(__loongarch_lp64) + #define MY_CPU_NAME "loongarch64" + #define MY_CPU_64BIT +#endif #if defined(__ppc64__) \ || defined(__powerpc64__)