hw/intc/arm_gicv3_its: Use FIELD macros for DTEs
commite07f844599525685db44ce74bf4ab12025d1d96a
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 7 Jan 2022 17:07:59 +0000 (7 17:07 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 7 Jan 2022 17:07:59 +0000 (7 17:07 +0000)
treec7b3f49b5bf211f0e38ec01210a2d34748f897dd
parentb87fab1c8e8977e8ea1233bafdbfa37090eefabf
hw/intc/arm_gicv3_its: Use FIELD macros for DTEs

Currently the ITS code that reads and writes DTEs uses open-coded
shift-and-mask to assemble the various fields into the 64-bit DTE
word.  The names of the macros used for mask and shift values are
also somewhat inconsistent, and don't follow our usual convention
that a MASK macro should specify the bits in their place in the word.
Replace all these with use of the FIELD macro.

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
hw/intc/gicv3_internal.h