From: "Derek Christ" <dchrist@rptu.de>
To: qemu-riscv@nongnu.org
Subject: RISC-V Floating Point Extension
Date: Mon, 29 Apr 2024 16:02:59 +0200 [thread overview]
Message-ID: <ximss-278650015@mail1.uni-kl.de> (raw)
Hello,
I'm currently trying to run a RISC-V bare-metal kernel on QEMU that uses the
floating point extension F.
It seems like this extension, besides D, is enabled automatically in QEMU.
In fact, the floating point registers can be examined successfully using
GDB.
However, when the first floating point instruction is reached in the program
execution (in this case flw), an illegal instruction trap is raised. The
kernel itself is compiled using these flags: -march=rv32imaf -mabi=ilp32f
Is there something I am missing? Perhaps, the FPU needs to be enabled in
some way?
Thanks for your help!
Best
Derek
next reply other threads:[~2024-04-29 14:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-29 14:02 Derek Christ [this message]
2024-04-29 14:54 ` RISC-V Floating Point Extension Palmer Dabbelt
2024-04-30 7:01 ` Derek Christ
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=ximss-278650015@mail1.uni-kl.de \
--to=dchrist@rptu.de \
--cc=qemu-riscv@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.