summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/qemu/qemu/fixmips.patch
blob: 01546d1030f9b5a095ea60d4c876a0e72d43fdab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Patch to fix mips boot hangs where virtio appears broken. Patch under discussion upstream. 
Regression is introduced by other fixes to 8.1.0 to get x86 boots working.

Upstream-Status: Pending [https://lore.kernel.org/qemu-devel/6c956b90-5a13-db96-9c02-9834a512fe6f@linaro.org/]

Index: qemu-8.1.0/softmmu/physmem.c
===================================================================
--- qemu-8.1.0.orig/softmmu/physmem.c
+++ qemu-8.1.0/softmmu/physmem.c
@@ -2517,7 +2517,7 @@ static void tcg_commit(MemoryListener *l
      * That said, the listener is also called during realize, before
      * all of the tcg machinery for run-on is initialized: thus halt_cond.
      */
-    if (cpu->halt_cond) {
+    if (cpu->halt_cond && !qemu_cpu_is_self(cpu)) {
         async_run_on_cpu(cpu, tcg_commit_cpu, RUN_ON_CPU_HOST_PTR(cpuas));
     } else {
         tcg_commit_cpu(cpu, RUN_ON_CPU_HOST_PTR(cpuas));