fix(test): compile error in test_irq_spurious_gicv2.c
Prior to this patch with PLATFORM_CORE_COUNT defined to 32 test_irq_spurious_gicv2.c fails to compile with the following error:
tftf/tests/runtime_services/trusted_os/tsp/test_irq_spurious_gicv2.c: In function ‘test_multicore_spurious_interrupt’:
tftf/tests/runtime_services/trusted_os/tsp/test_irq_spurious_gicv2.c:26:37: error: left shift count >= width of type [-Werror=shift-count-overflow]
26 | #define CPU_TARGET_FIELD ((1 << PLATFORM_CORE_COUNT) - 1)
| ^~
tftf/tests/runtime_services/trusted_os/tsp/test_irq_spurious_gicv2.c:232:48: note: in expansion of macro ‘CPU_TARGET_FIELD’
232 | gicv2_set_itargetsr_value(TEST_SPI_ID, CPU_TARGET_FIELD);
| ^~~~~~~~~~~~~~~~
Fix this by using 0xFF as the width of each field in GIC_ITARGETSR is 8
bits.
Change-Id: I310cf7ada7230051ba3cedf6752f26c80528b198
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
1 file changed