From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KXi0D-0003dy-Gc for qemu-devel@nongnu.org; Mon, 25 Aug 2008 15:45:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KXi09-0003cX-MR for qemu-devel@nongnu.org; Mon, 25 Aug 2008 15:45:24 -0400 Received: from [199.232.76.173] (port=38283 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KXi09-0003cR-Ic for qemu-devel@nongnu.org; Mon, 25 Aug 2008 15:45:21 -0400 Received: from el-out-1112.google.com ([209.85.162.182]:2988) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KXi09-000590-9g for qemu-devel@nongnu.org; Mon, 25 Aug 2008 15:45:21 -0400 Received: by el-out-1112.google.com with SMTP id y26so157968ele.19 for ; Mon, 25 Aug 2008 12:45:20 -0700 (PDT) Message-ID: Date: Mon, 25 Aug 2008 22:45:20 +0300 From: "Blue Swirl" Subject: Re: [Qemu-devel] SPARC sdiv patch In-Reply-To: <20080825150914.G45325@stanley.csl.cornell.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080825150914.G45325@stanley.csl.cornell.edu> 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 8/25/08, Vince Weaver wrote: > Hello > > the SPARC v9 manual specifies the sdiv instruction as computing > Y concated with the *lower 32 bits* of r[rs1] / lower 32 bits of r[rs2] > > The current code does not ensure that only the lowest 32 bits of rs1 are > used. The following patch fixes this. > > This fix allows the "gcc" SPEC 2000 benchmark complete successfully. > > The "udiv" helper might also need this fix. Thanks, applied.