projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d1f630
)
target-s390: Use uint64_to_float128
author
Richard Henderson
<rth@twiddle.net>
Sun, 9 Sep 2012 23:04:17 +0000
(16:04 -0700)
committer
Richard Henderson
<rth@twiddle.net>
Sat, 5 Jan 2013 20:18:45 +0000
(12:18 -0800)
Signed-off-by: Richard Henderson <rth@twiddle.net>
target-s390x/fpu_helper.c
patch
|
blob
|
history
diff --git
a/target-s390x/fpu_helper.c
b/target-s390x/fpu_helper.c
index
58c2e61
..
b6e5040
100644
(file)
--- a/
target-s390x/fpu_helper.c
+++ b/
target-s390x/fpu_helper.c
@@
-419,8
+419,7
@@
uint64_t HELPER(cdlgb)(CPUS390XState *env, uint64_t v2, uint32_t m3)
uint64_t HELPER(cxlgb)(CPUS390XState *env, uint64_t v2, uint32_t m3)
{
int hold = swap_round_mode(env, m3);
- /* ??? Not 50% correct. */
- float128 ret = int64_to_float128(v2, &env->fpu_status);
+ float128 ret = uint64_to_float128(v2, &env->fpu_status);
set_float_rounding_mode(hold, &env->fpu_status);
handle_exceptions(env, GETPC());
return RET128(ret);