From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J8DOr-0007YE-4t for qemu-devel@nongnu.org; Fri, 28 Dec 2007 06:29:13 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J8DOm-0007Vf-Nj for qemu-devel@nongnu.org; Fri, 28 Dec 2007 06:29:10 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J8DOm-0007VG-97 for qemu-devel@nongnu.org; Fri, 28 Dec 2007 06:29:08 -0500 Received: from mk-outboundfilter-4.mail.uk.tiscali.com ([212.74.114.32]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J8DOl-0002HH-3x for qemu-devel@nongnu.org; Fri, 28 Dec 2007 06:29:07 -0500 Received: from firetop.home (85-211-25-172.dyn.gotadsl.co.uk [85.211.25.172]) by smtp.nildram.co.uk (Postfix) with ESMTP id 034B42DC058 for ; Fri, 28 Dec 2007 11:28:57 +0000 (GMT) Received: from richard by firetop.home with local (Exim 4.63) (envelope-from ) id 1J8DOd-0002zm-AE for qemu-devel@nongnu.org; Fri, 28 Dec 2007 11:28:59 +0000 From: Richard Sandiford Date: Fri, 28 Dec 2007 11:28:59 +0000 Message-ID: <87lk7f6osk.fsf@firetop.home> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Subject: [Qemu-devel] Set FCR0.F64 for MIPS64R2-generic 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 --=-=-= MIPS64R2-generic implements the MIPS-3D ASE, so I assume it should also have a 64-bit FPU. Please apply if OK. Richard --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=mips64r2-f64.diff Index: target-mips/translate_init.c =================================================================== RCS file: /sources/qemu/qemu/target-mips/translate_init.c,v retrieving revision 1.35 diff -u -p -r1.35 translate_init.c --- target-mips/translate_init.c 25 Dec 2007 20:46:56 -0000 1.35 +++ target-mips/translate_init.c 28 Dec 2007 11:24:55 -0000 @@ -403,9 +403,9 @@ static mips_def_t mips_defs[] = .SYNCI_Step = 32, .CCRes = 2, .CP0_Status_rw_bitmask = 0x36FBFFFF, - .CP1_fcr0 = (1 << FCR0_3D) | (1 << FCR0_PS) | (1 << FCR0_L) | - (1 << FCR0_W) | (1 << FCR0_D) | (1 << FCR0_S) | - (0x00 << FCR0_PRID) | (0x0 << FCR0_REV), + .CP1_fcr0 = (1 << FCR0_F64) | (1 << FCR0_3D) | (1 << FCR0_PS) | + (1 << FCR0_L) | (1 << FCR0_W) | (1 << FCR0_D) | + (1 << FCR0_S) | (0x00 << FCR0_PRID) | (0x0 << FCR0_REV), .SEGBITS = 42, /* The architectural limit is 59, but we have hardcoded 36 bit in some places... --=-=-=--