diff options
author | edgar_igl | 2008-05-03 08:54:52 +0200 |
---|---|---|
committer | edgar_igl | 2008-05-03 08:54:52 +0200 |
commit | c7d0569543b349608f3be9c58cb0882ea6402a21 (patch) | |
tree | 094ed7f0b482771ac3f931e2c5e8b797700cc1db /target-cris/translate.c | |
parent | Avoid a build warning. (diff) | |
download | qemu-c7d0569543b349608f3be9c58cb0882ea6402a21.tar.gz qemu-c7d0569543b349608f3be9c58cb0882ea6402a21.tar.xz qemu-c7d0569543b349608f3be9c58cb0882ea6402a21.zip |
CRIS: Do post-increment without going via T0.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4304 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-cris/translate.c')
-rw-r--r-- | target-cris/translate.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/target-cris/translate.c b/target-cris/translate.c index 43c861dab4..7fdedbf7b8 100644 --- a/target-cris/translate.c +++ b/target-cris/translate.c @@ -958,13 +958,10 @@ static unsigned int memsize_zz(DisasContext *dc) } } -static void do_postinc (DisasContext *dc, int size) +static inline void do_postinc (DisasContext *dc, int size) { - if (!dc->postinc) - return; - t_gen_mov_TN_reg(cpu_T[0], dc->op1); - tcg_gen_addi_tl(cpu_T[0], cpu_T[0], size); - t_gen_mov_reg_TN(dc->op1, cpu_T[0]); + if (dc->postinc) + tcg_gen_addi_tl(cpu_R[dc->op1], cpu_R[dc->op1], size); } |