OSDN Git Service

target/i386: Use gen_jmp_rel for loop, repz, jecxz insns
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 1 Oct 2022 14:09:27 +0000 (07:09 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 11 Oct 2022 07:36:01 +0000 (09:36 +0200)
commit2255da493a92e0f6441c773fa3bfdfb34273e85f
tree8a2e92bd5953d9f43e18a906f616e0636de47fda
parent8760ded661c93b8aa76e74dcbd8c1a94764e8f12
target/i386: Use gen_jmp_rel for loop, repz, jecxz insns

With gen_jmp_rel, we may chain to the next tb instead of merely
writing to eip and exiting.  For repz, subtract cur_insn_len to
restart the current insn.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20221001140935.465607-19-richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/tcg/translate.c