]> www.infradead.org Git - users/dwmw2/qemu.git/commit
target/arm: Allow FPCR bits that aren't in FPSCR
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 28 Jun 2024 14:23:47 +0000 (15:23 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 11 Jul 2024 10:41:33 +0000 (11:41 +0100)
commita8ab8706d4cc461481ce419e62e3ad48b03638a8
treec1dae65ba1e86b4b2aa99bb87e127ce614374e00
parentdb397a81eea8a7dce25804398caa750fd6700e49
target/arm: Allow FPCR bits that aren't in FPSCR

In order to allow FPCR bits that aren't in the FPSCR (like the new
bits that are defined for FEAT_AFP), we need to make sure that writes
to the FPSCR only write to the bits of FPCR that are architecturally
mapped, and not the others.

Implement this with a new function vfp_set_fpcr_masked() which
takes a mask of which bits to update.

(We could do the same for FPSR, but we leave that until we actually
are likely to need it.)

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