Source: zydis
Version: 4.0.0-1
Severity: normal
X-Debbugs-Cc: [email protected]
Dear Maintainer,
There is a compilation error for zydis on the loongarch machine.
Tested the patch attached to the email on the LoongArch machine and it resolved
the issue.
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
--- zydis-4.0.0.orig/src/String.c
+++ zydis-4.0.0/src/String.c
@@ -322,7 +322,7 @@ ZyanStatus ZydisStringAppendDecU(ZyanStr
ZYAN_CHECK(ZydisStringAppend(string, prefix));
}
-#if defined(ZYAN_X64) || defined(ZYAN_AARCH64) || defined(ZYAN_PPC64) ||
defined(ZYAN_RISCV64)
+#if defined(ZYAN_X64) || defined(ZYAN_AARCH64) || defined(ZYAN_PPC64) ||
defined(ZYAN_RISCV64) || defined(ZYAN_LOONGARCH)
ZYAN_CHECK(ZydisStringAppendDecU64(string, value, padding_length));
#else
if (value & 0xFFFFFFFF00000000)
@@ -348,7 +348,7 @@ ZyanStatus ZydisStringAppendHexU(ZyanStr
ZYAN_CHECK(ZydisStringAppend(string, prefix));
}
-#if defined(ZYAN_X64) || defined(ZYAN_AARCH64) || defined(ZYAN_PPC64) ||
defined(ZYAN_RISCV64)
+#if defined(ZYAN_X64) || defined(ZYAN_AARCH64) || defined(ZYAN_PPC64) ||
defined(ZYAN_RISCV64) || defined(ZYAN_LOONGARCH)
ZYAN_CHECK(ZydisStringAppendHexU64(string, value, padding_length,
force_leading_number,
uppercase));
#else