Commit c7d0569543b349608f3be9c58cb0882ea6402a21
1 parent
63c1d925
CRIS: Do post-increment without going via T0.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4304 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
3 additions
and
6 deletions
target-cris/translate.c
... | ... | @@ -958,13 +958,10 @@ static unsigned int memsize_zz(DisasContext *dc) |
958 | 958 | } |
959 | 959 | } |
960 | 960 | |
961 | -static void do_postinc (DisasContext *dc, int size) | |
961 | +static inline void do_postinc (DisasContext *dc, int size) | |
962 | 962 | { |
963 | - if (!dc->postinc) | |
964 | - return; | |
965 | - t_gen_mov_TN_reg(cpu_T[0], dc->op1); | |
966 | - tcg_gen_addi_tl(cpu_T[0], cpu_T[0], size); | |
967 | - t_gen_mov_reg_TN(dc->op1, cpu_T[0]); | |
963 | + if (dc->postinc) | |
964 | + tcg_gen_addi_tl(cpu_R[dc->op1], cpu_R[dc->op1], size); | |
968 | 965 | } |
969 | 966 | |
970 | 967 | ... | ... |