target/hexagon: rename aliased register HEX_REG_P3_0
authorMukilan Thiyagarajan <quic_mthiyaga@quicinc.com>
Thu, 29 Dec 2022 09:20:06 +0000 (14:50 +0530)
committerTaylor Simpson <tsimpson@quicinc.com>
Thu, 5 Jan 2023 17:19:02 +0000 (09:19 -0800)
commit72895676e73c06a5c331777015b3780efda4edd0
tree3d69b5c9cc4516d094deafeda1c9c0bb2768e624
parentc979d901c8016082cd55a5789998c1cdfa26beef
target/hexagon: rename aliased register HEX_REG_P3_0

The patch renames the identifier of the 32bit register
HEX_REG_P3_0 to HEX_REG_P3_0_ALIASED.

This change is to intended to provide some warning that
HEX_REG_P3_0 is an aliased register which has multiple
representations in CPU state and therefore might require
special handling in some contexts. The hope is to prevent
accidental misuse of this register e.g the issue reported
for the signals tests failure [here][1].

[1]: https://lists.gnu.org/archive/html/qemu-devel/2021-11/msg01102.html

Signed-off-by: Mukilan Thiyagarajan <quic_mthiyaga@quicinc.com>
Signed-off-by: Taylor Simpson <tsimpson@quicinc.com>
Reviewed-by: Taylor Simpson <tsimpson@quicinc.com>
Message-Id: <20221229092006.10709-3-quic_mthiyaga@quicinc.com>
target/hexagon/cpu.c
target/hexagon/genptr.c
target/hexagon/hex_regs.h