projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be1c17c
)
target-i386: fix helper_fbld_ST0() wrt softfloat
author
Aurelien Jarno
<aurelien@aurel32.net>
Wed, 20 Apr 2011 11:04:23 +0000
(13:04 +0200)
committer
Aurelien Jarno
<aurelien@aurel32.net>
Mon, 25 Apr 2011 09:18:33 +0000
(11:18 +0200)
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-i386/op_helper.c
patch
|
blob
|
history
diff --git
a/target-i386/op_helper.c
b/target-i386/op_helper.c
index dce28fa054fab44155d11c13a7623bb30fbe9fb0..943d217e6e27a5caf5f374faa55400b70c4b3534 100644
(file)
--- a/
target-i386/op_helper.c
+++ b/
target-i386/op_helper.c
@@
-3920,9
+3920,10
@@
void helper_fbld_ST0(target_ulong ptr)
v = ldub(ptr + i);
val = (val * 100) + ((v >> 4) * 10) + (v & 0xf);
}
- tmp = val;
- if (ldub(ptr + 9) & 0x80)
- tmp = -tmp;
+ tmp = int64_to_floatx(val, &env->fp_status);
+ if (ldub(ptr + 9) & 0x80) {
+ floatx_chs(tmp);
+ }
fpush();
ST0 = tmp;
}