target/i386: fix implementation of ICEBP
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 29 May 2024 11:17:27 +0000 (13:17 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 8 Jun 2024 08:33:37 +0000 (10:33 +0200)
commit73fb7b3c4983e48f3081fca00013a996abf659c0
tree99cfd854f66e280f8a161e6a020afd892ce9f74b
parent69cb498c56263a5ae484fd4fef920d3d3eea04c8
target/i386: fix implementation of ICEBP

ICEBP generates a trap-like exception, while gen_exception() produces
a fault.  Resurrect gen_update_eip_next() to implement the desired
semantics.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/helper.h
target/i386/tcg/emit.c.inc
target/i386/tcg/excp_helper.c
target/i386/tcg/helper-tcg.h
target/i386/tcg/translate.c