提交 7621a90d 编写于 作者: B blueswir1

Fix udiv and sdiv on Sparc64 (Vince Weaver)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5085 c046a42c-6fe2-441c-8c8c-71466251a162
上级 6676f424
无相关合并请求
......@@ -2288,7 +2288,7 @@ target_ulong helper_udiv(target_ulong a, target_ulong b)
uint64_t x0;
uint32_t x1;
x0 = a | ((uint64_t) (env->y) << 32);
x0 = (a & 0xffffffff) | ((int64_t) (env->y) << 32);
x1 = b;
if (x1 == 0) {
......@@ -2310,7 +2310,7 @@ target_ulong helper_sdiv(target_ulong a, target_ulong b)
int64_t x0;
int32_t x1;
x0 = a | ((int64_t) (env->y) << 32);
x0 = (a & 0xffffffff) | ((int64_t) (env->y) << 32);
x1 = b;
if (x1 == 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部