Commit e3d8a9858ee1669c72a2ee58ead0d2d973eb4ab6
1 parent
ea6cf6be
Use DREG() instead of XREG() wherever possible, by Magnus Damm.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3003 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
8 additions
and
8 deletions
target-sh4/translate.c
| ... | ... | @@ -654,8 +654,8 @@ void decode_opc(DisasContext * ctx) |
| 654 | 654 | } else if (ctx->fpscr & FPSCR_SZ) { |
| 655 | 655 | if (ctx->opcode & 0x0110) |
| 656 | 656 | break; /* illegal instruction */ |
| 657 | - gen_op_fmov_drN_DT0(XREG(B7_4)); | |
| 658 | - gen_op_fmov_DT0_drN(XREG(B11_8)); | |
| 657 | + gen_op_fmov_drN_DT0(DREG(B7_4)); | |
| 658 | + gen_op_fmov_DT0_drN(DREG(B11_8)); | |
| 659 | 659 | } else { |
| 660 | 660 | gen_op_fmov_frN_FT0(FREG(B7_4)); |
| 661 | 661 | gen_op_fmov_FT0_frN(FREG(B11_8)); |
| ... | ... | @@ -669,7 +669,7 @@ void decode_opc(DisasContext * ctx) |
| 669 | 669 | } else if (ctx->fpscr & FPSCR_SZ) { |
| 670 | 670 | if (ctx->opcode & 0x0010) |
| 671 | 671 | break; /* illegal instruction */ |
| 672 | - gen_op_fmov_drN_DT0(XREG(B7_4)); | |
| 672 | + gen_op_fmov_drN_DT0(DREG(B7_4)); | |
| 673 | 673 | gen_op_movl_rN_T1(REG(B11_8)); |
| 674 | 674 | gen_op_stfq_DT0_T1(ctx); |
| 675 | 675 | } else { |
| ... | ... | @@ -688,7 +688,7 @@ void decode_opc(DisasContext * ctx) |
| 688 | 688 | break; /* illegal instruction */ |
| 689 | 689 | gen_op_movl_rN_T0(REG(B7_4)); |
| 690 | 690 | gen_op_ldfq_T0_DT0(ctx); |
| 691 | - gen_op_fmov_DT0_drN(XREG(B11_8)); | |
| 691 | + gen_op_fmov_DT0_drN(DREG(B11_8)); | |
| 692 | 692 | } else { |
| 693 | 693 | gen_op_movl_rN_T0(REG(B7_4)); |
| 694 | 694 | gen_op_ldfl_T0_FT0(ctx); |
| ... | ... | @@ -706,7 +706,7 @@ void decode_opc(DisasContext * ctx) |
| 706 | 706 | break; /* illegal instruction */ |
| 707 | 707 | gen_op_movl_rN_T0(REG(B7_4)); |
| 708 | 708 | gen_op_ldfq_T0_DT0(ctx); |
| 709 | - gen_op_fmov_DT0_drN(XREG(B11_8)); | |
| 709 | + gen_op_fmov_DT0_drN(DREG(B11_8)); | |
| 710 | 710 | gen_op_inc8_rN(REG(B7_4)); |
| 711 | 711 | } else { |
| 712 | 712 | gen_op_movl_rN_T0(REG(B7_4)); |
| ... | ... | @@ -725,7 +725,7 @@ void decode_opc(DisasContext * ctx) |
| 725 | 725 | if (ctx->opcode & 0x0100) |
| 726 | 726 | break; /* illegal instruction */ |
| 727 | 727 | gen_op_dec8_rN(REG(B11_8)); |
| 728 | - gen_op_fmov_drN_DT0(XREG(B7_4)); | |
| 728 | + gen_op_fmov_drN_DT0(DREG(B7_4)); | |
| 729 | 729 | gen_op_movl_rN_T1(REG(B11_8)); |
| 730 | 730 | gen_op_stfq_DT0_T1(ctx); |
| 731 | 731 | } else { |
| ... | ... | @@ -747,7 +747,7 @@ void decode_opc(DisasContext * ctx) |
| 747 | 747 | gen_op_movl_rN_T0(REG(B7_4)); |
| 748 | 748 | gen_op_add_rN_T0(REG(0)); |
| 749 | 749 | gen_op_ldfq_T0_DT0(ctx); |
| 750 | - gen_op_fmov_DT0_drN(XREG(B11_8)); | |
| 750 | + gen_op_fmov_DT0_drN(DREG(B11_8)); | |
| 751 | 751 | } else { |
| 752 | 752 | gen_op_movl_rN_T0(REG(B7_4)); |
| 753 | 753 | gen_op_add_rN_T0(REG(0)); |
| ... | ... | @@ -764,7 +764,7 @@ void decode_opc(DisasContext * ctx) |
| 764 | 764 | } else if (ctx->fpscr & FPSCR_SZ) { |
| 765 | 765 | if (ctx->opcode & 0x0010) |
| 766 | 766 | break; /* illegal instruction */ |
| 767 | - gen_op_fmov_drN_DT0(XREG(B7_4)); | |
| 767 | + gen_op_fmov_drN_DT0(DREG(B7_4)); | |
| 768 | 768 | gen_op_movl_rN_T1(REG(B11_8)); |
| 769 | 769 | gen_op_add_rN_T1(REG(0)); |
| 770 | 770 | gen_op_stfq_DT0_T1(ctx); | ... | ... |