]> git.proxmox.com Git - mirror_qemu.git/commit
target/arm: Make isar_feature_aa32_fp16_arith() handle M-profile
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 10 Sep 2020 17:38:55 +0000 (18:38 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 1 Oct 2020 14:31:00 +0000 (15:31 +0100)
commitdfc523a84b06b6a4b583ed4c29d24fd980dd37a0
treed4bb85c260a672ec0aab19afb65868134981d8f0
parent51cb228a1d1c0e325b4e7dea0bfb3140d6d11422
target/arm: Make isar_feature_aa32_fp16_arith() handle M-profile

The M-profile definition of the MVFR1 ID register differs slightly
from the A-profile one, and in particular the check for "does the CPU
support fp16 arithmetic" is not the same.

We don't currently implement any M-profile CPUs with fp16 arithmetic,
so this is not yet a visible bug, but correcting the logic now
disarms this beartrap for when we eventually do.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20200910173855.4068-6-peter.maydell@linaro.org
target/arm/cpu.h