qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [4705] Fix div[u]2.


From: Fabrice Bellard
Subject: Re: [Qemu-devel] [4705] Fix div[u]2.
Date: Mon, 09 Jun 2008 10:34:05 +0200
User-agent: Thunderbird 2.0.0.5 (X11/20070727)

malc wrote:
Revision: 4705
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4705
Author:   malc
Date:     2008-06-09 06:06:25 +0000 (Mon, 09 Jun 2008)

Log Message:
-----------
Fix div[u]2.

Previous code assummed 32 by 32 bit divmod operation, and survived
x86_64 test only by sheer luck. MIPS wasn't so forgiving.

Are you sure it is needed ? div[u]2 support in currently optional in TCG. On some hosts such as PowerPC, implementing div[u] directly is simpler. rem[u] can be implemented generically then.

Fabrice.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]