Skip to content

Commit 0b2f489

Browse files
committed
hw: arm: virt: HACK: wire up timer interrupt to FIQ to match t8015
Apple's SoCs expect timers to raise an FIQ interrupt directly instead of going through a GIC.
1 parent 4762568 commit 0b2f489

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hw/arm/virt.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,8 @@ static void create_gic(VirtMachineState *vms, qemu_irq *pic)
628628
qdev_get_gpio_in(cpudev, ARM_CPU_VIRQ));
629629
sysbus_connect_irq(gicbusdev, i + 3 * smp_cpus,
630630
qdev_get_gpio_in(cpudev, ARM_CPU_VFIQ));
631+
// zhuowei: hack: also wire timer to FIQ to match t8015
632+
qdev_connect_gpio_out(cpudev, GTIMER_PHYS, qdev_get_gpio_in(cpudev, ARM_CPU_FIQ));
631633
}
632634

633635
for (i = 0; i < NUM_IRQS; i++) {

0 commit comments

Comments
 (0)