From 60b735111889eaa7353aa8748757d7fa7dbc3bf0 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Fri, 4 Dec 2020 14:32:52 +0200 Subject: [PATCH] Enable riscv64 Signed-off-by: David Abdurachmanov --- qemu.spec | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/qemu.spec b/qemu.spec index 81f22f8..dca51be 100644 --- a/qemu.spec +++ b/qemu.spec @@ -33,7 +33,7 @@ # Matches numactl ExcludeArch %global have_numactl 1 -%ifarch %{arm} +%ifarch %{arm} riscv64 %global have_numactl 0 %endif @@ -184,7 +184,7 @@ Summary: QEMU is a FAST! processor emulator Name: qemu Version: 5.1.0 -Release: 7%{?rcrel}%{?dist} +Release: 7%{?rcrel}.0.riscv64%{?dist} Epoch: 2 License: GPLv2 and BSD and MIT and CC-BY URL: http://www.qemu.org/ @@ -344,7 +344,9 @@ BuildRequires: virglrenderer-devel # qemu 2.6: Needed for gtk GL support, vhost-user-gpu BuildRequires: mesa-libgbm-devel # qemu 2.11: preferred disassembler for TCG +%ifnarch riscv64 BuildRequires: capstone-devel +%endif # qemu 2.12: parallels disk images require libxml2 now BuildRequires: libxml2-devel %ifarch x86_64 @@ -376,6 +378,10 @@ BuildRequires: hostname BuildRequires: daxctl-devel BuildRequires: glibc-static pcre-static glib2-static zlib-static +# if -pthread is used GCC SPEC will add --as-needed -latomic --no-as-needed for linker +%ifarch riscv64 +BuildRequires: libatomic-static +%endif Requires: %{name}-user = %{epoch}:%{version}-%{release} @@ -1411,6 +1417,9 @@ chmod +x %{buildroot}%{_libdir}/qemu/*.so %global tests_skip 0 # Enable this temporarily if tests are broken %global tests_nofail 0 +%ifarch riscv64 +%global tests_nofail 1 +%endif # 2020-08-31: tests passing, but s390x fails due to # spurious warning breaking an iotest case @@ -1915,6 +1924,9 @@ getent passwd qemu >/dev/null || \ %changelog +* Fri Dec 04 2020 David Abdurachmanov - 5.1.0-7.0.riscv64 +- Enable riscv64 + * Thu Dec 03 2020 Cole Robinson - 5.1.0-7 - vhost-vsock-pci regressions (bz #1902057)