From: Fabrice Bellard <fabrice@bellard.org>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] qemu/linux-user main.c
Date: Wed, 14 Jun 2006 13:37:55 +0000 [thread overview]
Message-ID: <E1FqVZD-0000O1-D6@savannah.gnu.org> (raw)
CVSROOT: /sources/qemu
Module name: qemu
Changes by: Fabrice Bellard <bellard> 06/06/14 13:37:55
Modified files:
linux-user : main.c
Log message:
MIPS FPU support in linux user emulation
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemu/linux-user/main.c?cvsroot=qemu&r1=1.84&r2=1.85
Patches:
Index: main.c
===================================================================
RCS file: /sources/qemu/qemu/linux-user/main.c,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -b -r1.84 -r1.85
--- main.c 11 Jun 2006 13:32:59 -0000 1.84
+++ main.c 14 Jun 2006 13:37:55 -0000 1.85
@@ -1327,7 +1327,6 @@
arg5,
arg6);
}
- fail:
env->PC += 4;
if ((unsigned int)ret >= (unsigned int)(-1133)) {
env->gpr[7] = 1; /* error flag */
@@ -1342,40 +1341,11 @@
break;
case EXCP_CpU:
case EXCP_RI:
- {
- uint32_t insn, op;
-
- insn = tget32(env->PC);
- op = insn >> 26;
- // printf("insn=%08x op=%02x\n", insn, op);
- /* XXX: totally dummy FP ops just to be able to launch
- a few executables */
- switch(op) {
- case 0x31: /* LWC1 */
- env->PC += 4;
- break;
- case 0x39: /* SWC1 */
- env->PC += 4;
- break;
- case 0x11:
- switch((insn >> 21) & 0x1f) {
- case 0x02: /* CFC1 */
- env->PC += 4;
- break;
- default:
- goto sigill;
- }
- break;
- default:
- sigill:
info.si_signo = TARGET_SIGILL;
info.si_errno = 0;
info.si_code = 0;
queue_signal(info.si_signo, &info);
break;
- }
- }
- break;
default:
// error:
fprintf(stderr, "qemu: unhandled CPU exception 0x%x - aborting\n",
@@ -1700,6 +1670,9 @@
env->gpr[i] = regs->regs[i];
}
env->PC = regs->cp0_epc;
+#ifdef MIPS_USES_FPU
+ env->CP0_Status |= (1 << CP0St_CU1);
+#endif
}
#elif defined(TARGET_SH4)
{
next reply other threads:[~2006-06-14 13:37 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-14 13:37 Fabrice Bellard [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-03-26 22:40 [Qemu-devel] qemu/linux-user main.c Paul Brook
2008-01-08 14:39 Thiemo Seufer
2007-11-20 15:22 Thiemo Seufer
2007-11-15 15:37 Fabrice Bellard
2007-11-15 15:27 Fabrice Bellard
2007-11-11 19:32 Fabrice Bellard
2007-11-11 17:22 Fabrice Bellard
2007-11-11 14:46 Fabrice Bellard
2007-11-08 14:01 Fabrice Bellard
2007-11-08 13:56 Fabrice Bellard
2007-11-03 13:22 Jocelyn Mayer
2007-07-07 20:46 Blue Swirl
2007-06-27 11:12 Thiemo Seufer
2007-06-21 22:55 Thiemo Seufer
2007-06-17 16:38 Thiemo Seufer
2007-06-01 23:50 Thiemo Seufer
2007-04-08 6:30 Blue Swirl
2007-03-19 12:16 Thiemo Seufer
2007-03-19 19:46 ` J. Mayer
2007-03-19 20:13 ` Thiemo Seufer
2007-03-19 20:46 ` Pierre Palatin
2007-03-19 21:10 ` Thiemo Seufer
2007-03-19 8:08 Jocelyn Mayer
2006-11-04 16:46 Paul Brook
2006-10-23 21:31 Fabrice Bellard
2006-09-24 18:48 Fabrice Bellard
2005-12-05 21:04 Fabrice Bellard
2005-11-21 23:30 Fabrice Bellard
2005-10-30 21:01 Fabrice Bellard
2005-04-23 18:01 Fabrice Bellard
2005-03-13 16:56 Fabrice Bellard
2005-02-19 17:25 Fabrice Bellard
2005-02-15 22:54 Fabrice Bellard
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=E1FqVZD-0000O1-D6@savannah.gnu.org \
--to=fabrice@bellard.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).