diff options
author | j_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-10-29 21:54:35 +0000 |
---|---|---|
committer | j_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-10-29 21:54:35 +0000 |
commit | 86c4a9f5131414143b2ee82acb65a74de3baa8f5 (patch) | |
tree | 6bd16bc565b7f1a16b5325e2368a995f49b0d69f | |
parent | 273af66025e8cc6982febfb4a74a8d9106a92440 (diff) |
Fix two PowerPC FPU emulation bugs (thanks to Aurelien Jarno)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3487 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r-- | target-ppc/op_helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target-ppc/op_helper.c b/target-ppc/op_helper.c index da5a6f5e37..e534fab9f8 100644 --- a/target-ppc/op_helper.c +++ b/target-ppc/op_helper.c @@ -522,7 +522,7 @@ static always_inline int isinfinity (float64 f) u.f = f; - return ((u.u >> 52) & 0x3FF) == 0x3FF && + return ((u.u >> 52) & 0x7FF) == 0x7FF && (u.u & 0x000FFFFFFFFFFFFFULL) == 0; } @@ -681,7 +681,7 @@ static always_inline void float_zero_divide_excp (void) u0.f = FT0; u1.f = FT1; u0.u = ((u0.u ^ u1.u) & 0x8000000000000000ULL); - u0.u |= 0x3FFULL << 52; + u0.u |= 0x7FFULL << 52; FT0 = u0.f; } } |