hw/intc/arm_gicv3_its: Convert int ID check to num_intids convention
commit905720f18d77e9ca8737d3ff047cad9079cbde6d
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 11 Jan 2022 17:10:37 +0000 (11 17:10 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 20 Jan 2022 16:04:57 +0000 (20 16:04 +0000)
tree4e1c96570080a3744b06924dc568619c0a1c3fce
parent8f809f699251dcf28811b9693a196ff02367d7d6
hw/intc/arm_gicv3_its: Convert int ID check to num_intids convention

The bounds check on the number of interrupt IDs is correct, but
doesn't match our convention; change the variable name, initialize it
to the 2^n value rather than (2^n)-1, and use >= instead of > in the
comparison.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 20220111171048.3545974-3-peter.maydell@linaro.org
hw/intc/arm_gicv3_its.c