hw/intc/arm_gicv3_cpuif: Fix register names in ICV_HPPIR read trace event
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 3 Mar 2022 20:23:41 +0000 (20:23 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 7 Mar 2022 13:16:50 +0000 (13:16 +0000)
commitcf734c2a0f6a61dd22639416a5295d0e0fd8a7cd
tree257db78a9c95c27b94f0383287c0fb289fa9ed3c
parentb45f91e1a70e70f482ed75b50e24850591db2e5e
hw/intc/arm_gicv3_cpuif: Fix register names in ICV_HPPIR read trace event

The trace_gicv3_icv_hppir_read trace event takes an integer value
which it uses to form the register name, which should be either
ICV_HPPIR0 or ICV_HPPIR1.  We were passing in the 'grp' variable for
this, but that is either GICV3_G0 or GICV3_G1NS, which happen to be 0
and 2, which meant that tracing for the ICV_HPPIR1 register was
incorrectly printed as ICV_HPPIR2.

Use the same approach we do for all the other similar trace events,
and pass in 'ri->crm == 8 ?  0 : 1', deriving the index value
directly from the ARMCPRegInfo struct.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220303202341.2232284-6-peter.maydell@linaro.org
hw/intc/arm_gicv3_cpuif.c