On 4/8/22 07:15, Peter Maydell wrote:
In several places in virt.c we calculate the number of redistributors that
fit in a region of our memory map, which is the size of the region
divided by the size of a single redistributor frame. For GICv4, the
redistributor frame is a different size from that for GICv3. Abstract
out the calculation of redistributor region capacity so that we have
one place we need to change to handle GICv4 rather than several.

Signed-off-by: Peter Maydell<peter.mayd...@linaro.org>
---
  include/hw/arm/virt.h |  9 +++++++--
  hw/arm/virt.c         | 11 ++++-------
  2 files changed, 11 insertions(+), 9 deletions(-)

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

r~

Reply via email to