Revision 7a5e4488 target-sparc/translate.c

b/target-sparc/translate.c
3271 3271
                    case 0xe: /* udiv */
3272 3272
                        CHECK_IU_FEATURE(dc, DIV);
3273 3273
                        if (xop & 0x10) {
3274
                            gen_helper_udiv_cc(cpu_dst, cpu_src1, cpu_src2);
3274
                            gen_helper_udiv_cc(cpu_dst, cpu_env, cpu_src1,
3275
                                               cpu_src2);
3275 3276
                            dc->cc_op = CC_OP_DIV;
3276 3277
                        } else {
3277
                            gen_helper_udiv(cpu_dst, cpu_src1, cpu_src2);
3278
                            gen_helper_udiv(cpu_dst, cpu_env, cpu_src1,
3279
                                            cpu_src2);
3278 3280
                        }
3279 3281
                        break;
3280 3282
                    case 0xf: /* sdiv */
3281 3283
                        CHECK_IU_FEATURE(dc, DIV);
3282 3284
                        if (xop & 0x10) {
3283
                            gen_helper_sdiv_cc(cpu_dst, cpu_src1, cpu_src2);
3285
                            gen_helper_sdiv_cc(cpu_dst, cpu_env, cpu_src1,
3286
                                               cpu_src2);
3284 3287
                            dc->cc_op = CC_OP_DIV;
3285 3288
                        } else {
3286
                            gen_helper_sdiv(cpu_dst, cpu_src1, cpu_src2);
3289
                            gen_helper_sdiv(cpu_dst, cpu_env, cpu_src1,
3290
                                            cpu_src2);
3287 3291
                        }
3288 3292
                        break;
3289 3293
                    default:

Also available in: Unified diff