diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-02-21 20:23:59 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-02-21 20:23:59 +0000 |
commit | 0b9dc5e4c3b96a1e41ab7d660ba2ee2a83380e09 (patch) | |
tree | 495b54460180ad0d01eada35eec9b3163829cf62 /target-i386/translate.c | |
parent | 194884dd6f1fee4d4c41f74649e98af04ad6f83a (diff) | |
download | qemu-0b9dc5e4c3b96a1e41ab7d660ba2ee2a83380e09.zip qemu-0b9dc5e4c3b96a1e41ab7d660ba2ee2a83380e09.tar.gz qemu-0b9dc5e4c3b96a1e41ab7d660ba2ee2a83380e09.tar.bz2 |
loop insn fix for non x86 hosts
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1305 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386/translate.c')
-rw-r--r-- | target-i386/translate.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target-i386/translate.c b/target-i386/translate.c index a3005d8..0937239 100644 --- a/target-i386/translate.c +++ b/target-i386/translate.c @@ -5271,6 +5271,8 @@ static target_ulong disas_insn(DisasContext *s, target_ulong pc_start) gen_op_jz_ecx[s->aflag](l1); } else { gen_op_dec_ECX[s->aflag](); + if (b <= 1) + gen_op_mov_T0_cc(); gen_op_loop[s->aflag][b](l1); } |