commit | f7f2908a02b73128be6aafe2bc0a605424809c74 | [log] [tgz] |
---|---|---|
author | Peter Maydell <peter.maydell@linaro.org> | Fri May 06 17:03:34 2022 +0100 |
committer | Peter Maydell <peter.maydell@linaro.org> | Fri May 06 17:05:06 2022 +0100 |
tree | 586d2bc74ba963d3c62c9bfe6b46a7961eae1bda | |
parent | e9746b5fa4117a29147385bf41c601e8cab01eaf [diff] |
hw/intc/arm_gicv3: Provide ich_num_aprs() We previously open-coded the expression for the number of virtual APR registers and the assertion that it was not going to cause us to overflow the cs->ich_apr[] array. Factor this out into a new ich_num_aprs() function, for consistency with the icc_num_aprs() function we just added for the physical APR handling. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>