]> git.proxmox.com Git - mirror_qemu.git/commit - hw/arm_gic.c
arm: make sure that number of irqs can be represented in GICD_TYPER.
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 2 Mar 2012 11:56:38 +0000 (11:56 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 2 Mar 2012 11:56:38 +0000 (11:56 +0000)
commit41c1e2f54e6fc76dbc7047f1a95693f4d37b4623
treec0f517ad34b9c4e7fcde6f8e184a4bfa03106afa
parent6925380062263df34dcf7ba8e139e426a077f04f
arm: make sure that number of irqs can be represented in GICD_TYPER.

We currently assume that the number of interrupts (ITLinesNumber in
the architecture reference manual) is divisible by 32, since we
present it to the guest when it reads GICD_TYPER (in gic_dist_readb())
as (N / 32) - 1.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm_gic.c