summary refs log tree commit diff stats
path: root/results/classifier/zero-shot/105/device/1960
blob: a7d8433d9dcd5c44fa2e44ffb9957372eccd7606 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
device: 0.896
graphic: 0.664
instruction: 0.600
network: 0.499
socket: 0.457
vnc: 0.356
mistranslation: 0.344
semantic: 0.316
boot: 0.289
assembly: 0.144
other: 0.139
KVM: 0.103

Invalid pmu interrupt id in arm virt machine device-tree
Description of problem:
commit 9036e917f8357f4e5965ebfecdab5964d40e6a40 changes the definition of PPI interrupt ID, but forgets to modify the PMU device tree. 
The following patch can solve this problem:
```
diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index dd6bb80ce2..1d118974ee 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -663,7 +663,7 @@ static void fdt_add_pmu_nodes(const VirtMachineState *vms)
         qemu_fdt_setprop(ms->fdt, "/pmu", "compatible",
                          compat, sizeof(compat));
         qemu_fdt_setprop_cells(ms->fdt, "/pmu", "interrupts",
-                               GIC_FDT_IRQ_TYPE_PPI, VIRTUAL_PMU_IRQ, irqflags);
+                               GIC_FDT_IRQ_TYPE_PPI, INTID_TO_PPI(VIRTUAL_PMU_IRQ), irqflags);
     }
 }
```
Steps to reproduce:
NA
Additional information: