qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] MIPS CP0 not usable in kernel mode?


From: Thiemo Seufer
Subject: Re: [Qemu-devel] [PATCH] MIPS CP0 not usable in kernel mode?
Date: Fri, 24 Mar 2006 17:02:00 +0000
User-agent: Mutt/1.5.11+cvs20060126

On Thu, Mar 23, 2006 at 08:48:25PM +0100, Stefan Weil wrote:
> 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.

This is correct (otherwise it wouldn't be possible to ever enable CP0).
The Linux kernel (plus qemu startup) happens to avoid this particular
case, which might explain it wasn't caught earlier.


Thiemo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]