From c39a03b76a91db237a0d9a61b95b9ce7ac65692a Mon Sep 17 00:00:00 2001 From: lvgenggeng Date: Mon, 24 Feb 2025 10:02:20 +0800 Subject: [PATCH] Add sw64 support Signed-off-by: lvgenggeng --- 0009-etmem-1.1-add-sw64-support.patch | 57 +++++++++++++++++++++++++++ etmem.spec | 6 ++- 2 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 0009-etmem-1.1-add-sw64-support.patch diff --git a/0009-etmem-1.1-add-sw64-support.patch b/0009-etmem-1.1-add-sw64-support.patch new file mode 100644 index 0000000..090e06a --- /dev/null +++ b/0009-etmem-1.1-add-sw64-support.patch @@ -0,0 +1,57 @@ +From 6824abb03b8d3d62b4433eee59750af75a289885 Mon Sep 17 00:00:00 2001 +From: root +Date: Mon, 11 Nov 2024 19:59:44 +0800 +Subject: [PATCH] add sw64 support + +--- + etmem/CMakeLists.txt | 6 ++++++ + etmem/test/CMakeLists.txt | 2 ++ + 2 files changed, 8 insertions(+) + +diff --git a/etmem/CMakeLists.txt b/etmem/CMakeLists.txt +index 6018ce0..7259e4a 100644 +--- a/etmem/CMakeLists.txt ++++ b/etmem/CMakeLists.txt +@@ -96,6 +96,8 @@ elseif( ${ARCHITECTURE} STREQUAL "loongarch64" ) + target_compile_options(etmemd PRIVATE -march=loongarch64) + elseif( ${ARCHITECTURE} STREQUAL "riscv64" ) + target_compile_options(etmemd PRIVATE -march=rv64gc) ++elseif( ${ARCHITECTURE} STREQUAL "sw_64" ) ++ target_compile_options(etmemd PRIVATE) + else() + target_compile_options(etmemd PRIVATE -march=core-avx-i -m64) + endif() +@@ -117,6 +119,8 @@ elseif( ${ARCHITECTURE} STREQUAL "loongarch64" ) + target_compile_options(etmemd PRIVATE -march=loongarch64) + elseif( ${ARCHITECTURE} STREQUAL "riscv64" ) + target_compile_options(etmemd PRIVATE -march=rv64gc) ++elseif( ${ARCHITECTURE} STREQUAL "sw_64" ) ++ target_compile_options(etmemd PRIVATE) + else() + target_compile_options(etmem PRIVATE -march=core-avx-i -m64) + endif() +@@ -139,6 +143,8 @@ elseif( ${ARCHITECTURE} STREQUAL "loongarch64" ) + target_compile_options(etmemd_scan PRIVATE -march=loongarch64) + elseif( ${ARCHITECTURE} STREQUAL "riscv64" ) + target_compile_options(etmemd PRIVATE -march=rv64gc) ++elseif( ${ARCHITECTURE} STREQUAL "sw_64" ) ++ target_compile_options(etmemd PRIVATE) + else() + target_compile_options(etmemd_scan PRIVATE -march=core-avx-i -m64) + endif() +diff --git a/etmem/test/CMakeLists.txt b/etmem/test/CMakeLists.txt +index b808eb2..ac7911f 100644 +--- a/etmem/test/CMakeLists.txt ++++ b/etmem/test/CMakeLists.txt +@@ -158,6 +158,8 @@ elseif( ${ARCHITECTURE} STREQUAL "loongarch64" ) + SET(COMMON_COMPILE_OPT ${COMMON_COMPILE_OPT} -march=loongarch64) + elseif( ${ARCHITECTURE} STREQUAL "riscv64" ) + SET(COMMON_COMPILE_OPT ${COMMON_COMPILE_OPT} -march=rv64gc) ++elseif( ${ARCHITECTURE} STREQUAL "sw_64" ) ++ SET(COMMON_COMPILE_OPT ${COMMON_COMPILE_OPT}) + else() + SET(COMMON_COMPILE_OPT ${COMMON_COMPILE_OPT} -march=core-avx-i -m64) + endif() +-- +2.33.0 + diff --git a/etmem.spec b/etmem.spec index 77146f6..9134a8c 100644 --- a/etmem.spec +++ b/etmem.spec @@ -1,6 +1,6 @@ Name: etmem Version: 1.1 -Release: 9 +Release: 10 Summary: etmem License: MulanPSL-2.0 URL: https://gitee.com/openeuler/etmem @@ -14,6 +14,7 @@ Patch0004: 0005-etmem-1.1-add-riscv64-support.patch Patch0005: 0006-etmem-fix-project-stop-cmd-timeout-problem.patch Patch0006: 0007-etmem-construct-etmem-debug-info-package.patch Patch0007: 0008-etmem-set-scan_type-optional-and-fix-sequence-of-head.patch +Patch0008: 0009-etmem-1.1-add-sw64-support.patch #Dependency BuildRequires: cmake gcc gcc-c++ glib2-devel @@ -70,6 +71,9 @@ install -m 0644 userswap/include/uswap_api.h $RPM_BUILD_ROOT%{_includedir} %postun -p /sbin/ldconfig %changelog +* Mon Feb 24 2025 lvgenggeng - 1.1-10 +- Add sw64 support + * Mon Nov 4 2024 chenrenhui - 1.1-9 - Type: bugfix - CVE:NA -- Gitee