From: Stefan Weil <weil@mail.berlios.de>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] MIPS CP0 not usable in kernel mode?
Date: Thu, 23 Mar 2006 20:48:25 +0100 [thread overview]
Message-ID: <4422FB89.6000705@mail.berlios.de> (raw)
Hello,
according to MIPS32 4KE User's Manual, coprocessor CP0 is
always usable when the processor is running in kernel mode.
So in kernel mode, exception "CP0 is not usable" should
not happen.
I think the boolean expression which checks for the
exception condition has to be inverted - see my patch
for translate.c.
Kind regards,
Stefan
RCS file: /sources/qemu/qemu/target-mips/translate.c,v
retrieving revision 1.11
diff -u -r1.11 translate.c
--- target-mips/translate.c 5 Dec 2005 19:59:36 -0000 1.11
+++ target-mips/translate.c 23 Mar 2006 19:25:53 -0000
@@ -1180,7 +1180,7 @@
const unsigned char *opn = "unk";
if (!(ctx->CP0_Status & (1 << CP0St_CU0)) &&
- !(ctx->hflags & MIPS_HFLAG_UM) &&
+ (ctx->hflags & MIPS_HFLAG_UM) &&
!(ctx->hflags & MIPS_HFLAG_ERL) &&
!(ctx->hflags & MIPS_HFLAG_EXL)) {
if (loglevel & CPU_LOG_TB_IN_ASM) {
//
next reply other threads:[~2006-03-23 19:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-23 19:48 Stefan Weil [this message]
2006-03-24 17:02 ` [Qemu-devel] [PATCH] MIPS CP0 not usable in kernel mode? Thiemo Seufer
2006-03-29 12:09 ` [Qemu-devel] [PATCH] Fix some minor warnings from qemu-doc.texi Stefan Weil
2006-08-21 16:36 ` [Qemu-devel] [PATCH] Small fix for qemu-doc.texi Stefan Weil
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=4422FB89.6000705@mail.berlios.de \
--to=weil@mail.berlios.de \
--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).