[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] x86: Fix emulation of DIV instruction. Never actually used currently,
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |