On 6/4/24 02:18, Paolo Bonzini wrote:
HLT uses DISAS_NORETURN because the corresponding helper calls
cpu_loop_exit().  However, while gen_eob() clears HF_RF_MASK and
synthesizes a #DB exception if single-step is active, none of this is
done by HLT.  Note that the single-step trap is generated after the halt
is finished.

Signed-off-by: Paolo Bonzini<pbonz...@redhat.com>
---
  target/i386/tcg/sysemu/misc_helper.c |  2 +-
  target/i386/tcg/sysemu/seg_helper.c  | 17 ++++++++++++++---
  2 files changed, 15 insertions(+), 4 deletions(-)

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

r~

Reply via email to