Permalink
Browse files

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.
  • Loading branch information...
zhuowei committed Jul 17, 2018
1 parent 4762568 commit 0b2f489947d1ec8999b1bf3ac5df488649ad72cf
Showing with 2 additions and 0 deletions.
  1. +2 −0 hw/arm/virt.c
@@ -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++) {

0 comments on commit 0b2f489

Please sign in to comment.