]> git.proxmox.com Git - mirror_qemu.git/commit
target/arm: Make FPSCR.LTPSIZE writable for MVE
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 20 May 2021 15:28:38 +0000 (16:28 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 3 Jun 2021 15:43:25 +0000 (16:43 +0100)
commitb26b5629c0be4a9539833de4189184a224590d14
tree6ba883e488bf82896ec16e9cf518f7b3f2fe8369
parent7c3d47dab908ac1770726e68cf72e47bb5a9cbcb
target/arm: Make FPSCR.LTPSIZE writable for MVE

The M-profile FPSCR has an LTPSIZE field, but if MVE is not
implemented it is read-only and always reads as 4; this is how QEMU
currently handles it.

Make the field writable when MVE is implemented.

We can safely add the field to the MVE migration struct because
currently no CPUs enable MVE and so the migration struct is never
used.

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