From 36f58822fe1ed1a274368b051254554d2af71491 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Tue, 8 Nov 2022 09:00:13 +0200 Subject: [PATCH] Add support for riscv64 Signed-off-by: David Abdurachmanov --- qemu.spec | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/qemu.spec b/qemu.spec index 1de1866..35fa0d1 100644 --- a/qemu.spec +++ b/qemu.spec @@ -322,7 +322,7 @@ Obsoletes: %{name}-system-unicore32-core <= %{epoch}:%{version}-%{release} Summary: QEMU is a FAST! processor emulator Name: qemu Version: 7.0.0 -Release: %{baserelease}%{?rcrel}%{?dist} +Release: %{baserelease}%{?rcrel}.0.riscv64%{?dist} Epoch: 2 License: GPLv2 and BSD and MIT and CC-BY URL: http://www.qemu.org/ @@ -511,6 +511,10 @@ BuildRequires: SDL2_image-devel %if %{user_static} BuildRequires: glibc-static pcre2-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 %endif # Requires for the Fedora 'qemu' metapackage @@ -1971,7 +1975,8 @@ rm -rf %{static_buildroot} pushd %{qemu_kvm_build} echo "Testing %{name}-build" # 2022-06: ppc64le random qtest segfaults with no discernable pattern -%ifnarch %{power64} +# 2022-10: some arches (2) hang in endless loops in qtests on riscv64 +%ifnarch %{power64} riscv64 %make_build check %endif @@ -2477,8 +2482,8 @@ useradd -r -u 107 -g qemu -G kvm -d / -s /sbin/nologin \ %{_bindir}/qemu-riscv64-static %{_datadir}/systemtap/tapset/qemu-riscv32-static.stp %{_datadir}/systemtap/tapset/qemu-riscv64-static.stp -%{_exec_prefix}/lib/binfmt.d/qemu-riscv32-static.conf %ifnarch riscv64 +%{_exec_prefix}/lib/binfmt.d/qemu-riscv32-static.conf %{_exec_prefix}/lib/binfmt.d/qemu-riscv64-static.conf %endif @@ -2724,6 +2729,9 @@ useradd -r -u 107 -g qemu -G kvm -d / -s /sbin/nologin \ %changelog +* Tue Nov 08 2022 David Abdurachmanov - 2:7.0.0-10.0.riscv64 +- Add support for riscv64 + * Tue Oct 18 2022 Mauro Matteo Cascella - 2:7.0.0-10 - vga: avoid crash if no default vga card (rhbz#2095639) - lsi53c895a: fix use-after-free in lsi_do_msgout (CVE-2022-0216) (rhbz#2070902)