]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/arm: Allow reading flags from FPSCR for M-profile
authorChristophe Lyon <christophe.lyon@linaro.org>
Fri, 25 Oct 2019 09:57:11 +0000 (11:57 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 4 Nov 2019 14:34:45 +0000 (08:34 -0600)
commitcdc6896659b85f7ed8f7552850312e55170de0c5
treeb67285ca6c98a905be0611cd50b1cfde44354cb6
parentc0b35d87de345bd3b59a44c604b247a0497f2fc0
target/arm: Allow reading flags from FPSCR for M-profile

rt==15 is a special case when reading the flags: it means the
destination is APSR. This patch avoids rejecting
vmrs apsr_nzcv, fpscr
as illegal instruction.

Cc: qemu-stable@nongnu.org
Signed-off-by: Christophe Lyon <christophe.lyon@linaro.org>
Message-id: 20191025095711.10853-1-christophe.lyon@linaro.org
[PMM: updated the comment]
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
(cherry picked from commit 2529ab43b8a05534494704e803e0332d111d8b91)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
target/arm/translate-vfp.inc.c