Enable riscv64

Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
This commit is contained in:
David Abdurachmanov 2020-12-04 14:32:52 +02:00
parent 0d7eae515e
commit 60b7351118
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB

View File

@ -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 <david.abdurachmanov@sifive.com> - 5.1.0-7.0.riscv64
- Enable riscv64
* Thu Dec 03 2020 Cole Robinson <crobinso@redhat.com> - 5.1.0-7
- vhost-vsock-pci regressions (bz #1902057)