qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] MIPS CP0 not usable in kernel mode?
@ 2006-03-23 19:48 Stefan Weil
  2006-03-24 17:02 ` Thiemo Seufer
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Weil @ 2006-03-23 19:48 UTC (permalink / raw)
  To: qemu-devel

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) {

//

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-08-21 16:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-23 19:48 [Qemu-devel] [PATCH] MIPS CP0 not usable in kernel mode? Stefan Weil
2006-03-24 17:02 ` 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

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).