Commit 06f7332ab9ba2f4a7e24f5b7c58473c4aa558ddb
1 parent
c609b12e
target-ppc: fix previous commit
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6516 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
4 additions
and
1 deletions
target-ppc/op_helper.c
... | ... | @@ -1502,6 +1502,7 @@ uint64_t helper_fsqrt (uint64_t arg) |
1502 | 1502 | uint64_t helper_fre (uint64_t arg) |
1503 | 1503 | { |
1504 | 1504 | CPU_DoubleU farg; |
1505 | + farg.ll = arg; | |
1505 | 1506 | |
1506 | 1507 | if (unlikely(float64_is_signaling_nan(farg.d))) { |
1507 | 1508 | /* sNaN reciprocal */ |
... | ... | @@ -1515,8 +1516,9 @@ uint64_t helper_fre (uint64_t arg) |
1515 | 1516 | /* fres - fres. */ |
1516 | 1517 | uint64_t helper_fres (uint64_t arg) |
1517 | 1518 | { |
1518 | - CPU_Double farg; | |
1519 | + CPU_DoubleU farg; | |
1519 | 1520 | float32 f32; |
1521 | + farg.ll = arg; | |
1520 | 1522 | |
1521 | 1523 | if (unlikely(float64_is_signaling_nan(farg.d))) { |
1522 | 1524 | /* sNaN reciprocal */ |
... | ... | @@ -1534,6 +1536,7 @@ uint64_t helper_frsqrte (uint64_t arg) |
1534 | 1536 | { |
1535 | 1537 | CPU_DoubleU farg; |
1536 | 1538 | float32 f32; |
1539 | + farg.ll = arg; | |
1537 | 1540 | |
1538 | 1541 | if (unlikely(float64_is_signaling_nan(farg.d))) { |
1539 | 1542 | /* sNaN reciprocal square root */ | ... | ... |