Commit d71b9a8b2fa294c7689e43d97ee15dc56bb99853
1 parent
181f1558
fixed lmsw instruction
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@457 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
2 additions
and
0 deletions
target-i386/translate.c
@@ -3921,6 +3921,8 @@ static uint8_t *disas_insn(DisasContext *s, uint8_t *pc_start) | @@ -3921,6 +3921,8 @@ static uint8_t *disas_insn(DisasContext *s, uint8_t *pc_start) | ||
3921 | } else { | 3921 | } else { |
3922 | gen_ldst_modrm(s, modrm, OT_WORD, OR_TMP0, 0); | 3922 | gen_ldst_modrm(s, modrm, OT_WORD, OR_TMP0, 0); |
3923 | gen_op_lmsw_T0(); | 3923 | gen_op_lmsw_T0(); |
3924 | + gen_op_jmp_im(s->pc - s->cs_base); | ||
3925 | + gen_eob(s); | ||
3924 | } | 3926 | } |
3925 | break; | 3927 | break; |
3926 | case 7: /* invlpg */ | 3928 | case 7: /* invlpg */ |