mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
hw/intc/arm_gicv3_its: Use FIELD macros for CTEs
Use FIELD macros to handle CTEs, rather than ad-hoc mask-and-shift. 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>
This commit is contained in:
parent
257bb6501c
commit
437dc0ea98
2 changed files with 6 additions and 4 deletions
|
@ -403,7 +403,8 @@ FIELD(DTE, ITTADDR, 6, 44)
|
|||
* Valid = 1 bit, RDBase = 16 bits
|
||||
*/
|
||||
#define GITS_CTE_SIZE (0x8ULL)
|
||||
#define GITS_CTE_RDBASE_PROCNUM_MASK MAKE_64BIT_MASK(1, RDBASE_PROCNUM_LENGTH)
|
||||
FIELD(CTE, VALID, 0, 1)
|
||||
FIELD(CTE, RDBASE, 1, RDBASE_PROCNUM_LENGTH)
|
||||
|
||||
/* Special interrupt IDs */
|
||||
#define INTID_SECURE 1020
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue