Description of problem: This is a placeholder bug as, at time of writing, riscv64 support is not yet upstream. However with any luck it will be upstream by qemu 2.12. Please add support for building qemu-system-riscv64 and maybe qemu-system-riscv32 (riscv64 is the only one we really care about). Version-Release number of selected component (if applicable): qemu 2.12 Additional info: http://lists.gnu.org/archive/html/qemu-devel/2018-03/msg00684.html https://github.com/riscv/riscv-qemu/tree/qemu-upstream-v8
Created attachment 1404230 [details] patch
probably sending a pull request here -> https://src.fedoraproject.org/rpms/qemu makes easy to merge.
Upstream in: https://git.qemu.org/?p=qemu.git;a=commit;h=d9bbfea646e86426d549bd612cd9f91e49aa50c2
I tried to cherry pick this for the 2.11 branch but it's pretty difficult. I wonder if (for Rawhide only) we could move to a 2.11.50/2.12 git version?
https://wiki.qemu.org/Planning/2.12 2.12 rc0 is planned for mar 20 which isn't far away, but if you're motivated to do a git snapshot before then I say go for it
OK it's only a week so let's wait. In the mean time we found a bug in FPU support which is still being looked at.
We don't have any proper fix for the FPU problem, so we will need to include this workaround: https://github.com/rwmjones/fedora-riscv-bootstrap/blob/master/stage1-riscv-qemu/force-float-save.patch It has a performance penalty in the guest because FP registers are saved and loaded on every context switch, but that's better than corrupting any math calculations, and in any case it only affects riscv64 guests.
qemu-2.12.0-rc0 is building now with the patch in comment #7