From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LoLIr-0003kV-89 for qemu-devel@nongnu.org; Mon, 30 Mar 2009 13:29:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LoLIl-0003hf-U8 for qemu-devel@nongnu.org; Mon, 30 Mar 2009 13:29:39 -0400 Received: from [199.232.76.173] (port=50842 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LoLIl-0003hZ-MC for qemu-devel@nongnu.org; Mon, 30 Mar 2009 13:29:35 -0400 Received: from csl.cornell.edu ([128.84.224.10]:4998 helo=vlsi.csl.cornell.edu) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LoLIl-0005Jn-DH for qemu-devel@nongnu.org; Mon, 30 Mar 2009 13:29:35 -0400 Received: from stanley.csl.cornell.edu (stanley.csl.cornell.edu [128.84.224.15]) by vlsi.csl.cornell.edu (8.13.4/8.13.4) with ESMTP id n2UHTT5b075177 for ; Mon, 30 Mar 2009 13:29:35 -0400 (EDT) Date: Mon, 30 Mar 2009 13:29:29 -0400 (EDT) From: Vince Weaver Subject: Re: [Qemu-devel] mipsIV support for mips-linux-user In-Reply-To: <20090330043539.GE12026@hall.aurel32.net> Message-ID: <20090330131050.L20376@stanley.csl.cornell.edu> References: <20090329165112.G16354@stanley.csl.cornell.edu> <20090330010551.GD12026@hall.aurel32.net> <20090329220159.E17939@stanley.csl.cornell.edu> <20090330043539.GE12026@hall.aurel32.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Mon, 30 Mar 2009, Aurelien Jarno wrote: > Do you have the end of qemu.log when running your code with -d in_asm,op? The first cop1x instruction happens relatively deep into the program, so the debugging dump is pretty larege. How far back do you want? It looks like no matter what cpu option I pick, the HFLAGS is set to 0x0022 (which is only the usermode and FPU flags). Because of this the generated assembly in the debug output unconditionally generates an illegal instruction exception the first time a cop1x instruction is executed (in my case, "msub.d") I've been digging through the qemu mips code, and I can't seem to find where the hflags are set in the usermode case. The only place that sets the MIPS_HFLAG_COP1X is in exec.h, "compute_hflags()" but that doesn't ever seem to be called if CONFIG_USER_ONLY Vince