Skip to content


hw: arm: virt: HACK: wire up timer interrupt to FIQ to match t8015
Browse files Browse the repository at this point in the history
Apple's SoCs expect timers to raise an FIQ interrupt directly instead of going through a GIC.
  • Loading branch information
zhuowei committed Jul 21, 2018
1 parent 4762568 commit 0b2f489
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hw/arm/virt.c
Expand Up @@ -628,6 +628,8 @@ static void create_gic(VirtMachineState *vms, qemu_irq *pic)
qdev_get_gpio_in(cpudev, ARM_CPU_VIRQ));
sysbus_connect_irq(gicbusdev, i + 3 * smp_cpus,
qdev_get_gpio_in(cpudev, ARM_CPU_VFIQ));
// zhuowei: hack: also wire timer to FIQ to match t8015
qdev_connect_gpio_out(cpudev, GTIMER_PHYS, qdev_get_gpio_in(cpudev, ARM_CPU_FIQ));

for (i = 0; i < NUM_IRQS; i++) {
Expand Down

0 comments on commit 0b2f489

Please sign in to comment.