OSDN Git Service

hw/intc/arm_gicv3_its: Remove maxids union from TableDesc
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 7 Jan 2022 17:07:58 +0000 (17:07 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 7 Jan 2022 17:07:58 +0000 (17:07 +0000)
commit6c1db43de4965b5274830bbd36298638a6dbb468
treea6df7e7e7429223b67f6f862e3336d31d58aedc8
parent8d2d6dd9bb6f4a275e9acc5d97b020cd91483285
hw/intc/arm_gicv3_its: Remove maxids union from TableDesc

The TableDesc struct defines properties of the in-guest-memory tables
which the guest tells us about by writing to the GITS_BASER<n>
registers.  This struct currently has a union 'maxids', but all the
fields of the union have the same type (uint32_t) and do the same
thing (record one-greater-than the maximum ID value that can be used
as an index into the table).

We're about to add another table type (the GICv4 vPE table); rather
than adding another specifically-named union field for that table
type with the same type as the other union fields, remove the union
entirely and just have a 'uint32_t max_ids' struct field.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
hw/intc/arm_gicv3_its.c
include/hw/intc/arm_gicv3_its_common.h