]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/intc/arm_gicv3: Add new gicv3_intid_is_special() function
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 26 Nov 2021 16:39:14 +0000 (16:39 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 26 Nov 2021 16:58:57 +0000 (16:58 +0000)
commitb74d7c0e50ac4bde85c0ff629bfc23cdf378e62c
treea837cfb71e905d1b06678e19d0b7287b8ba5b60a
parent101f27f3c834842238624b6c0205be3281883878
hw/intc/arm_gicv3: Add new gicv3_intid_is_special() function

The GICv3/v4 pseudocode has a function IsSpecial() which returns true
if passed a "special" interrupt ID number (anything between 1020 and
1023 inclusive).  We open-code this condition in a couple of places,
so abstract it out into a new function gicv3_intid_is_special().

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
hw/intc/arm_gicv3_cpuif.c
hw/intc/gicv3_internal.h