WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] x86: Fix emulation of DIV instruction. Ne

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] x86: Fix emulation of DIV instruction. Never actually used currently,
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 11 Oct 2007 20:30:10 -0700
Delivery-date: Thu, 11 Oct 2007 20:30:31 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir@xxxxxxxxxxxxx>
# Date 1192126692 -3600
# Node ID d5531095d06b5e4513e891b89fd3085311490304
# Parent  313ab23f05dbd7b708653ff4603b62da534efd84
x86: Fix emulation of DIV instruction. Never actually used currently,
but this will avoid a #DE in Xen.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 xen/arch/x86/x86_emulate.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 313ab23f05db -r d5531095d06b xen/arch/x86/x86_emulate.c
--- a/xen/arch/x86/x86_emulate.c        Thu Oct 11 13:53:50 2007 +0100
+++ b/xen/arch/x86/x86_emulate.c        Thu Oct 11 19:18:12 2007 +0100
@@ -586,7 +586,7 @@ static int imul_dbl(unsigned long m[2])
  */
 static int div_dbl(unsigned long u[2], unsigned long v)
 {
-    if ( (v == 0) || (u[1] > v) || ((u[1] == v) && (u[0] != 0)) )
+    if ( (v == 0) || (u[1] >= v) )
         return 1;
     asm ( "div %4"
           : "=a" (u[0]), "=d" (u[1])

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] x86: Fix emulation of DIV instruction. Never actually used currently,, Xen patchbot-unstable <=