target/arm: Rename FPSR_MASK and FPCR_MASK and define them symbolically
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 28 Jun 2024 14:23:46 +0000 (15:23 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 11 Jul 2024 10:41:33 +0000 (11:41 +0100)
commitdb397a81eea8a7dce25804398caa750fd6700e49
tree5ed21e8fe13b1848dffcee62b10718b7a9483502
parenta26db547b7d571d97d33afc0f952afa34678ea3b
target/arm: Rename FPSR_MASK and FPCR_MASK and define them symbolically

Now that we store FPSR and FPCR separately, the FPSR_MASK and
FPCR_MASK macros are slightly confusingly named and the comment
describing them is out of date.  Rename them to FPSCR_FPSR_MASK and
FPSCR_FPCR_MASK, document that they are the mask of which FPSCR bits
are architecturally mapped to which AArch64 register, and define them
symbolically rather than as hex values.  (This latter requires
defining some extra macros for bits which we haven't previously
defined.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20240628142347.1283015-9-peter.maydell@linaro.org
target/arm/cpu.h
target/arm/machine.c
target/arm/vfp_helper.c