qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Arm: VFP regression
@ 2021-03-20 22:38 Adam Lackorzynski
  2021-03-20 22:42 ` no-reply
  2021-03-21 12:56 ` Peter Maydell
  0 siblings, 2 replies; 4+ messages in thread
From: Adam Lackorzynski @ 2021-03-20 22:38 UTC (permalink / raw)
  To: qemu-devel; +Cc: Peter Maydell, Richard Henderson

Hi,

I'm seeing a regression in Arm's vfp handling, giving an undefined
instruction when reading mvfr1 in PL2/armv7 although the FPU is enabled.
The following makes it work again for me, however this just looks like a
band-aid. Thanks for taking a look.

Adam

diff --git a/target/arm/translate-vfp.c.inc b/target/arm/translate-vfp.c.inc
index 10766f210c..37c079fab1 100644
--- a/target/arm/translate-vfp.c.inc
+++ b/target/arm/translate-vfp.c.inc
@@ -120,7 +120,7 @@ static void gen_preserve_fp_state(DisasContext *s)
  */
 static bool full_vfp_access_check(DisasContext *s, bool ignore_vfp_enabled)
 {
-    if (s->fp_excp_el) {
+    if (s->fp_excp_el && !ignore_vfp_enabled) {
         /* M-profile handled this earlier, in disas_m_nocp() */
         assert (!arm_dc_feature(s, ARM_FEATURE_M));
         gen_exception_insn(s, s->pc_curr, EXCP_UDEF,




^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-03-22 17:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-20 22:38 Arm: VFP regression Adam Lackorzynski
2021-03-20 22:42 ` no-reply
2021-03-21 12:56 ` Peter Maydell
2021-03-22 17:09   ` Adam Lackorzynski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).