]> git.proxmox.com Git - mirror_qemu.git/commit
Hexagon (target/hexagon) Clean up handling of modifier registers
authorTaylor Simpson <ltaylorsimpson@gmail.com>
Sun, 10 Dec 2023 22:07:04 +0000 (15:07 -0700)
committerBrian Cain <bcain@quicinc.com>
Mon, 22 Jan 2024 06:01:42 +0000 (22:01 -0800)
commit421b53d589e2a714b3f3175dddedda9755e83387
tree7b88c261dfcf50614309f70d2efd22e5f40aba21
parentccdae09a8054731fbf49d5f223ff1903408a5ac3
Hexagon (target/hexagon) Clean up handling of modifier registers

Currently, the register number (MuN) for modifier registers is the
modifier register number rather than the index into hex_gpr.  This
patch changes MuN to the hex_gpr index, which is consistent with
the handling of control registers.

Note that HELPER(fcircadd) needs the CS register corresponding to the
modifier register specified in the instruction.  We create a TCGv
variable "CS" to hold the value to pass to the helper.

Reviewed-by: Brian Cain <bcain@quicinc.com>
Signed-off-by: Taylor Simpson <ltaylorsimpson@gmail.com>
Message-Id: <20231210220712.491494-2-ltaylorsimpson@gmail.com>
Signed-off-by: Brian Cain <bcain@quicinc.com>
target/hexagon/gen_tcg.h
target/hexagon/gen_tcg_funcs.py
target/hexagon/idef-parser/parser-helpers.c
target/hexagon/macros.h