提交 788e7336 编写于 作者: A Aurelien Jarno

target-i386: fix helper_fbld_ST0() wrt softfloat

Reviewed-by: NPeter Maydell <peter.maydell@linaro.org>
Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
上级 be1c17c7
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册