From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lnx45-0008QJ-Bu for qemu-devel@nongnu.org; Sun, 29 Mar 2009 11:36:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lnx45-0008Q5-3R for qemu-devel@nongnu.org; Sun, 29 Mar 2009 11:36:49 -0400 Received: from [199.232.76.173] (port=52974 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lnx44-0008Q2-TP for qemu-devel@nongnu.org; Sun, 29 Mar 2009 11:36:48 -0400 Received: from savannah.gnu.org ([199.232.41.3]:34217 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Lnx44-0002eS-LH for qemu-devel@nongnu.org; Sun, 29 Mar 2009 11:36:48 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Lnx44-00065D-3u for qemu-devel@nongnu.org; Sun, 29 Mar 2009 15:36:48 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1Lnx43-000659-PU for qemu-devel@nongnu.org; Sun, 29 Mar 2009 15:36:48 +0000 MIME-Version: 1.0 Errors-To: aurel32 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Aurelien Jarno Message-Id: Date: Sun, 29 Mar 2009 15:36:47 +0000 Subject: [Qemu-devel] [6949] target-mips: fix divu instruction 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 Revision: 6949 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6949 Author: aurel32 Date: 2009-03-29 15:36:47 +0000 (Sun, 29 Mar 2009) Log Message: ----------- target-mips: fix divu instruction Signed-off-by: Aurelien Jarno Modified Paths: -------------- trunk/target-mips/translate.c Modified: trunk/target-mips/translate.c =================================================================== --- trunk/target-mips/translate.c 2009-03-29 14:08:54 UTC (rev 6948) +++ trunk/target-mips/translate.c 2009-03-29 15:36:47 UTC (rev 6949) @@ -1847,6 +1847,8 @@ { int l1 = gen_new_label(); + tcg_gen_ext32u_tl(t0, t0); + tcg_gen_ext32u_tl(t1, t1); tcg_gen_brcondi_tl(TCG_COND_EQ, t1, 0, l1); tcg_gen_divu_tl(cpu_LO[0], t0, t1); tcg_gen_remu_tl(cpu_HI[0], t0, t1);