qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [6949] target-mips: fix divu instruction
@ 2009-03-29 15:36 Aurelien Jarno
  0 siblings, 0 replies; only message in thread
From: Aurelien Jarno @ 2009-03-29 15:36 UTC (permalink / raw)
  To: qemu-devel

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 <aurelien@aurel32.net>

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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-29 15:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-29 15:36 [Qemu-devel] [6949] target-mips: fix divu instruction Aurelien Jarno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).