From: Richard Henderson <richard.henderson@linaro.org>
To: Fredrik Noring <noring@nocrew.org>,
"Maciej W. Rozycki" <macro@linux-mips.org>,
Aurelien Jarno <aurelien@aurel32.net>,
Aleksandar Markovic <aleksandar.markovic@mips.com>
Cc: "Jürgen Urban" <JuergenUrban@gmx.de>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [RFC] target/mips: Initial support for MIPS R5900
Date: Wed, 1 Aug 2018 09:54:48 -0400 [thread overview]
Message-ID: <c4b04967-c6fa-eea6-4c6e-7001c48344ba@linaro.org> (raw)
In-Reply-To: <20180801133922.GC2371@localhost.localdomain>
On 08/01/2018 09:39 AM, Fredrik Noring wrote:
> Can QEMU be instructed to emulate
> the FPU only for Linux user space programs as opposed to hardware emulation?
Yes, that can be done. I would suggest something like
/*
* Hardware traps to the operating system for emulation.
* For user-only, qemu is the operating system, so we
* emulate the trap and emulate by simply emulating the
* instruction directly.
*/
#ifdef CONFIG_USER_ONLY
# define CP0C1_FP_USER_ONLY (1 << CP0C1_FP)
#else
# define CP0C1_FP_USER_ONLY 0
#endif
and include that in your initialization of CP0_Config1.
r~
next prev parent reply other threads:[~2018-08-01 13:55 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-07 19:41 [Qemu-devel] [RFC] target/mips: Initial support for MIPS R5900 Fredrik Noring
2018-07-08 12:10 ` Fredrik Noring
2018-07-08 21:07 ` "Jürgen Urban"
2018-08-01 1:33 ` Maciej W. Rozycki
2018-08-01 13:39 ` Fredrik Noring
2018-08-01 13:54 ` Richard Henderson [this message]
2018-09-07 19:16 ` [Qemu-devel] [PATCH v2] " Fredrik Noring
2018-09-08 9:20 ` Aleksandar Markovic
2018-09-08 14:27 ` [Qemu-devel] [PATCH v3] target/mips: Support R5900 GCC programs in user mode Fredrik Noring
2018-09-11 9:46 ` Aleksandar Markovic
2018-09-08 11:31 ` [Qemu-devel] [PATCH v2] target/mips: Initial support for MIPS R5900 Maciej W. Rozycki
2018-09-12 20:23 ` Maciej W. Rozycki
2018-09-16 16:19 ` [Qemu-devel] [PATCH v3] target/mips: Support R5900 GCC programs in user mode Fredrik Noring
2018-09-08 0:03 ` [Qemu-devel] [RFC] target/mips: Initial support for MIPS R5900 Philippe Mathieu-Daudé
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=c4b04967-c6fa-eea6-4c6e-7001c48344ba@linaro.org \
--to=richard.henderson@linaro.org \
--cc=JuergenUrban@gmx.de \
--cc=aleksandar.markovic@mips.com \
--cc=aurelien@aurel32.net \
--cc=macro@linux-mips.org \
--cc=noring@nocrew.org \
--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).