qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Semion Prihodko <semion.ababo@gmail.com>
To: QEMU Developers <qemu-devel@nongnu.org>
Subject: [Qemu-devel] Enable floating point support in qemu-system-aarch64
Date: Sun, 14 Sep 2014 13:53:46 +0300	[thread overview]
Message-ID: <CAOLuvB0_ofpvpKzMf78SX6MwzCzO+-jdpy3GSGoLsmqbQfHTiA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1226 bytes --]

Hi guys,

Please explain me how to enable floating point and SIMD support in
qemu-system-aarch64 (ver.2.1.0). My code is booting and working correctly
before calling variadic function (with empty body), and then crashes. Here
is the code of the problematic function:

   0: d102c3ff sub sp, sp, #0xb0
   4: f90043e2 str x2, [sp,#128]
   8: f90047e3 str x3, [sp,#136]
   c: f9004be4 str x4, [sp,#144]
  10: f9004fe5 str x5, [sp,#152]
  14: f90053e6 str x6, [sp,#160]
  18: f90057e7 str x7, [sp,#168]
  1c: 3d8003e0 str q0, [sp]
  20: 3d8007e1 str q1, [sp,#16]
  24: 3d800be2 str q2, [sp,#32]
  28: 3d800fe3 str q3, [sp,#48]
  2c: 3d8013e4 str q4, [sp,#64]
  30: 3d8017e5 str q5, [sp,#80]
  34: 3d801be6 str q6, [sp,#96]
  38: 3d801fe7 str q7, [sp,#112]
  3c: 52800000 mov w0, #0x0                   // #0
  40: 9102c3ff add sp, sp, #0xb0
  44: d65f03c0 ret

 You can see the callee is saving GP and FP registers to stack which is OK.
Then I replaced the call with the following instruction:

str q0, [sp]

The same crash. Does it mean that I should enable floating point support?
How can I do it? In register dump (using instruction msr FPEXC32_EL2, x1) I
can see that FPEXC32_EL2 EN bit is set. What's a problem here? Thanks.

[-- Attachment #2: Type: text/html, Size: 4127 bytes --]

                 reply	other threads:[~2014-09-14 10:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAOLuvB0_ofpvpKzMf78SX6MwzCzO+-jdpy3GSGoLsmqbQfHTiA@mail.gmail.com \
    --to=semion.ababo@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).